AlliedModders

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

drew73197 07-21-2017 20:42

[ANY] Discord Report
 
1 Attachment(s)
Discord Report
This is my first post on AM so I hope the format is correct.

short description
this is a plugin I created for the Vatican City, basically someone on the server types !report <reason> or !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! The bot itself has commands to block people from reporting and unblock people from reporting.

USAGE
sm_report <reason>
or
sm_report <username/id> <reason>

here's an example images below

https://samedude.me/i/xduhxIj.png https://samedude.me/i/s8Mv6R8.png https://samedude.me/i/NR0p2wr.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. I should also mention I edited the helpers.inc to be able to make the plugin work as I wanted, so I will also include my modified version of helpers.inc. I hope you guys find it as useful as the Vatican has!

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 23:14.

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