Um bot Discord para servidores Call of Duty 1. Os recursos incluem status do servidor ao vivo, logs de bate-papo, alertas de relatório e banimento e automute de spam e palavrões.
Os arquivos referentes ao seu servidor CoD estão na pasta "servidor". Abra.
- Adicione
codwatcher.log
ecodwatcher.cfg
à pasta "principal" (ou fs_game) do seu servidor. - Inclua
codwatcher.cfg
em seu arquivo de configuração do servidor com extensãoexec codwatcher.cfg
. - Adicione
codwatcher.gsc
à pasta "codam" do seu servidor. - Adicione o mod ao CoDaM "modlist.gsc" -
[[ register ]]( "CoD Watcher", codam\codwatcher::main );
.
Para usar o plugin com MiscMod, faça o seguinte:
- Abra "codam/_mm_commands.gsc"
- Procurar por
str = codam\_mm_mmm::strip(str);
- Adicione o seguinte código acima dessa linha:
if(!self codam\codwatcher::message(str)) { creturn(); return; }
Para usar o plug-in com outros sistemas de comando de bate-papo, adicione o mesmo bloco de código do MiscMod em sua função de retorno de chamada de mensagem de bate-papo. Você também precisará incluir sua lógica de ativar/desativar o som no arquivo "codwatcher.gsc".
- Coloque a pasta "bot" em algum lugar no diretório do servidor. Assumiremos que você o colocou fora de sua pasta "principal".
- Vá para a pasta "bot".
- Configure as configurações em "config.json".
- Instale os módulos necessários com
npm install
. - Execute o bot com o seguinte comando
node app.js
.