Revert "Delete 'pingbot.rb'"

This reverts commit 97656bff08.
master
Astoria Floyd 3 years ago
parent 97656bff08
commit ea6ad0bde2

@ -0,0 +1,26 @@
#!/usr/bin/env ruby
require 'discordrb'
require 'tmpdir'
#require 'toml'
#$config = TOML.load_file("./config.toml")
bot = Discordrb::Bot.new token: 'ODc0MDMzNjc4Mjc4MzQ0NzY0.YRBFSw.N_rTx8xQL7cn5E9tSj2IlieTNlk'
bang = '!'
def loadCommands(bot, bang)
File.foreach("modules/modules.txt", chop: true) { |line|
mod = "./modules/" + line + "/main.rb"
require mod.delete("\n")
send("#{line.delete("\n")}", bot, bang)
}
end
loadCommands(bot, bang)
#require './pingcommand.rb'
#main(bot)
#tomlTest()
bot.run
Loading…
Cancel
Save