2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-31 14:15:25 +00:00

Bans and warns

This commit is contained in:
Thomas Rory Gummerson
2017-07-24 13:44:14 +02:00
parent 57baf97cae
commit 9116038f4f
5 changed files with 73 additions and 2 deletions

View File

@@ -3,12 +3,17 @@
// validate config
require('child_process').execSync('node init.js', { stdio: 'inherit' });
const { loadJSON } = require('./utils/json');
const Telegraf = require('telegraf');
const { loadJSON } = require('./utils/json');
const bans = require('./bans');
const warns = require('./warns');
const config = loadJSON('config.json');
const bot = new Telegraf(config.token);
bot.startPolling();