AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Discord Report **UPDATED 4/30/24** (https://forums.alliedmods.net/showthread.php?t=299649)

drew73197 07-21-2017 20:42

[ANY] Discord Report **UPDATED 4/30/24**
 
3 Attachment(s)
Discord Report
This is my first post on AM so I hope the format is correct.
** UPDATE 4/30/24 **
No longer my first post, but since the 64 bit update I have been in a programming mood, and I have updated this

short description
this is a plugin I created for the Vatican City, basically someone on the server types !report <username/id> <reason> and it'll add it to the specified database and then I have created and provided discord bot code written in NodeJS for you to run on your own machine to watch for reports and post them in a channel that you have specified in the config.js file!

** UPDATE 4/30/24 **
New features include optional TF2 chat log, an admin chat where you can talk to people in the server from discord, along with an option to create a voice channel that the bot updates every 5 minutes with the amount of players on the server. This source code is heavily modified for what I created for our server and honestly is much cleaner, but I have tested it with our server and everything seems to work just fine and the time. Our server runs the 64x version of TF2 so this is confirmed working for TF2 64. This plugin should work on all types of servers, the only thing that may not work is the discord bot when it comes to the in game chat and getting the player count, as I am not sure how other games handle that or if they offer the logaddress_add IP:PORT command like TF2 does.

USAGE
sm_report <username/id> <reason>

here's an example images below

https://samedude.me/i/YZR7yeW.png https://samedude.me/i/x9MbxJR.png https://samedude.me/i/8lU4vgC.png
https://samedude.me/i/qQmYakx.png
https://samedude.me/i/hJKWHms.png
https://samedude.me/i/TuQHTLF.png

Anyways this plugin I have created here requires you to have a discord server as I'm sure most communities at this point do have one. I'm not sure what games this will run on other than TF2 because that's all I've tested it on. This was pretty much my first time creating a plugin and also creating a discord bot, so I give it as is with no warranty. Do with it as you please fix it up as you want, or even message me with suggestions on how to make it better! There is a README.txt file I will be including on how to set this up.

Please post any questions below and I will try to get to you ASAP

I made a repo with all of the zip folder contents here https://github.com/drew73197/Discord-Report

cigzag 07-21-2017 23:53

Re: Report plugin
 
I recommend you make the title of this plugin more descriptive, like [ANY] Discord Report (date)

EDIT : Update Description so it's more informative (The header)

drew73197 07-22-2017 00:08

Re: Report plugin
 
Quote:

Originally Posted by SnowTigerVidz (Post 2536859)
I recommend you make the title of this plugin more descriptive, like [ANY] Discord Report (date)

EDIT : Update Description so it's more informative (The header)

Thanks I think I made the post better!

cigzag 07-22-2017 00:32

Re: [ANY] Discord Report
 
Haha, looks way better already!

Mesharsky How2Kill 07-22-2017 01:23

Re: [ANY] Discord Report
 
It would be fantastic if you would do TeamSpeak3 Bot as well.

drew73197 07-22-2017 01:38

Re: [ANY] Discord Report
 
Quote:

Originally Posted by Mesharsky How2Kill (Post 2536868)
It would be fantastic if you would do TeamSpeak3 Bot as well.

I can definitely attempt it! I'll look into it tomorrow.

vortex. 07-22-2017 07:19

Re: [ANY] Discord Report
 
Good job :)

Mesharsky How2Kill 07-22-2017 09:50

Re: [ANY] Discord Report
 
Quote:

Originally Posted by drew73197 (Post 2536873)
I can definitely attempt it! I'll look into it tomorrow.


Thank's man and good luck i hope you will made it

drew73197 07-22-2017 23:03

Re: [ANY] Discord Report
 
Quote:

Originally Posted by Mesharsky How2Kill (Post 2536932)
Thank's man and good luck i hope you will made it

I looked into it, I think it's very doable I just don't have the time myself to do it. Maybe in a couple weeks if no one else has taken the liberty to do it themselves I'll do it!

romeo7 07-29-2017 17:33

Re: [ANY] Discord Report
 
how to use config.js ? where to add?


All times are GMT -4. The time now is 22:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.