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:
7
index.js
7
index.js
@@ -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();
|
||||
|
Reference in New Issue
Block a user