Raised This Month: $32 Target: $400
 8% 

[ANY] Report bot ( SQL + Instant Discord Notification )


Post New Thread Reply   
 
Thread Tools Display Modes
Author
XiSl0w
Junior Member
Join Date: Jul 2020
Plugin ID:
7241
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 08-05-2020 , 18:37   [ANY] Report bot ( SQL + Instant Discord Notification )
    Reply With Quote #1

    Short Description:
    A plugin that allows players to report, basically a player on the server types !report <reason> or !report <username/id> <reason> and it'll add it to the specified database and send a notification to your discord channel using webhooks.

    Requires:
    SteamWorks

    Installation:
    1- Download the file and extract it in your sourcemod file.
    2- Navigate to your csgo folder/cfg/sourcemod/report_bot.cfg and insert your webhook
    3- go to your database config and insert the following at the end:
    Code:
        "reports"
    	{
    		"driver"			"default"
    		"host"                       "yourhost"
                    "database"                "yourdatabasename"
                    "user"                      "yourusername"
                    "pass"                      "yourpassword"
    	}
    4- Copy the following text and replace the "<Your DataBase Name Here>" with your database name then save it as an sql file and import it to your database.
    Code:
    CREATE DATABASE IF NOT EXISTS `<Your DataBase Name Here>` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
    USE `<Your DataBase Name Here>`;
    
    DROP TABLE IF EXISTS `blocked`;
    CREATE TABLE `blocked` (
      `id` int(11) NOT NULL,
      `steam_id` varchar(64) NOT NULL
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    
    DROP TABLE IF EXISTS `reports`;
    CREATE TABLE `reports` (
      `id` int(11) NOT NULL,
      `server_name` varchar(128) NOT NULL,
      `reporter` varchar(64) NOT NULL,
      `reporter_id` varchar(32) NOT NULL,
      `suspect` varchar(64) DEFAULT NULL,
      `suspect_id` varchar(32) DEFAULT NULL,
      `reason` varchar(256) NOT NULL,
      `dateOf` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
      `sent` int(11) NOT NULL DEFAULT '0'
    ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
    
    ALTER TABLE `blocked`
      ADD PRIMARY KEY (`id`),
      ADD UNIQUE KEY `steam_id` (`steam_id`);
    
    ALTER TABLE `reports`
      ADD PRIMARY KEY (`id`);
    
    ALTER TABLE `blocked`
      MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
    
    ALTER TABLE `reports`
      MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;COMMIT;
    Preview:
    1- First
    2- Second

    Credits:
    Me
    drew73197
    Benito
    Attached Files
    File Type: zip report_bot.zip (26.6 KB, 338 views)

    Last edited by XiSl0w; 08-06-2020 at 05:38.
    XiSl0w is offline
    Trum
    AlliedModders Donor
    Join Date: Jan 2017
    Old 08-05-2020 , 18:50   Re: [ANY] Report bot ( SQL + Instant Discord Notification )
    Reply With Quote #2

    Trum is offline
    Fearts
    ferts of daeth
    Join Date: Oct 2008
    Old 08-06-2020 , 16:50   Re: [ANY] Report bot ( SQL + Instant Discord Notification )
    Reply With Quote #3

    Would be cool if you added a ingame menu with a list of reasons and being able to chose players on the server via menu. This way people can't input stupid reasons and limits mistakes of reporting the wrong person.
    __________________
    Fearts is offline
    Benito
    Member
    Join Date: Jul 2018
    Location: Belgique - Belgium
    Old 08-07-2020 , 21:42   Re: [ANY] Report bot ( SQL + Instant Discord Notification )
    Reply With Quote #4

    __________________
    Benito is offline
    awyx
    Member
    Join Date: Mar 2019
    Old 04-14-2021 , 07:44   Re: [ANY] Report bot ( SQL + Instant Discord Notification )
    Reply With Quote #5

    this plugins also requires smjansson and a discord api plugin, would be nice to add to your post since people are having problems using it

    Code:
    [SM] Unable to load plugin "report_bot.smx": Required extension "SMJansson" file("smjansson.ext") not running
    Code:
    [SM] Unable to load plugin "report_bot.smx": Native "DiscordWebHook.Send" was not found
    __________________
    Segmentation fault (core dumped)
    https://steamcommunity.com/id/sleepiest/
    roby#0577

    Last edited by awyx; 04-14-2021 at 07:46.
    awyx is offline
    laspi94
    New Member
    Join Date: Jun 2021
    Old 06-16-2021 , 17:55   Re: [ANY] Report bot ( SQL + Instant Discord Notification )
    Reply With Quote #6

    Quote:
    Originally Posted by awyx View Post
    this plugins also requires smjansson and a discord api plugin, would be nice to add to your post since people are having problems using it

    Code:
    [SM] Unable to load plugin "report_bot.smx": Required extension "SMJansson" file("smjansson.ext") not running
    Code:
    [SM] Unable to load plugin "report_bot.smx": Native "DiscordWebHook.Send" was not found
    I have the same problem
    laspi94 is offline
    Reply



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 23:54.


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