fixed token code

master
s00ner 2021-06-11 20:39:06 +00:00
parent bc1b393765
commit 10ed7d4ece
1 changed files with 4 additions and 3 deletions

7
bot.rb Normal file → Executable file
View File

@ -2,11 +2,12 @@
require 'discordrb'
token = File.read("./token")
bot = Discordrb::bot.new token: token
token = File.read("./token").strip
bot = Discordrb::Bot.new token: token
bot.message(with_text: 'Ping!') do |event|
event.respond 'Pong!'
end
bot.run
bot.run