A Discord bot for Call of Duty 1 servers. Features include live server status, chat logs, report & ban alerts and spam & bad-word automute.
Files regarding your CoD server are in "server" folder. Open it.
- Add
codwatcher.log
andcodwatcher.cfg
to "main" (or fs_game) folder of your server. - Include
codwatcher.cfg
in your server configuration file withexec codwatcher.cfg
. - Add
codwatcher.gsc
to "codam" folder of your server. - Add the mod to CoDaM "modlist.gsc" -
[[ register ]]( "CoD Watcher", codam\codwatcher::main );
.
To use the plugin with MiscMod, do the following:
- Open "codam/_mm_commands.gsc"
- Search for
str = codam\_mm_mmm::strip(str);
- Add the following code above that line:
if(!self codam\codwatcher::message(str)) { creturn(); return; }
To use the plugin with other chat command systems, add the same block of code as for MiscMod in your chat message callback function. You will also need to include your mute/unmute logic in "codwatcher.gsc" file.
- Put the "bot" folder somewhere in your server directory. We'll assume you put it outside your "main" folder.
- Head over to "bot" folder.
- Cofigure the settings in "config.json".
- Install the required modules with
npm install
. - Run the bot with the following command
node app.js
.