이슈 #1 해결 #2
4
index.js
4
index.js
@ -6,7 +6,7 @@ const Sender = require('./src/sender.js')
|
|||||||
|
|
||||||
const commandManager = require('./src/commandManager.js')
|
const commandManager = require('./src/commandManager.js')
|
||||||
|
|
||||||
const bot_token = fs.readFileSync('./bot-token.txt', 'utf8')
|
const bot_token = fs.readFileSync('./bot-token.txt', 'utf8').trim()
|
||||||
const bot = new TelegramBot(bot_token, { polling: true })
|
const bot = new TelegramBot(bot_token, { polling: true })
|
||||||
|
|
||||||
const sender = new Sender(bot)
|
const sender = new Sender(bot)
|
||||||
@ -121,4 +121,4 @@ bot.on('message', message => {
|
|||||||
|
|
||||||
bot.on('polling_error', (error) => {
|
bot.on('polling_error', (error) => {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user