1
1
mirror of https://gitlab.com/ceda_ei/Quadnite-Bot synced 2026-05-06 05:40:04 +02:00

Add /suggest to upload gifs to ugoki api server

This commit is contained in:
2021-09-27 21:36:21 +05:30
parent 4878274656
commit 159ca9e87d
7 changed files with 414 additions and 38 deletions

4
bot.js
View File

@@ -1,5 +1,5 @@
const Telegraf = require("telegraf");
const { BOT_API_KEY, FEEDBACK_ID } = process.env;
const { BOT_API_KEY, FEEDBACK_ID, UGOKI_ROOT } = process.env;
const fs = require("fs").promises;
const commands = require("./commands");
const axios = require("axios");
@@ -21,6 +21,6 @@ const data = [
Promise.all(data)
.then(data =>
commands(bot, [...data, roleplay], FEEDBACK_ID, axios));
commands(bot, [...data, roleplay], FEEDBACK_ID, BOT_API_KEY, UGOKI_ROOT, axios));
bot.launch();