Removed the "server_id" from testing.
This commit is contained in:
@@ -41,8 +41,6 @@ class CheeseBot
|
||||
start_bot
|
||||
end
|
||||
|
||||
|
||||
|
||||
def run
|
||||
@bot.run
|
||||
end
|
||||
@@ -68,7 +66,7 @@ class CheeseBot
|
||||
def start_bot
|
||||
@bot.ready do
|
||||
puts "#{@bot.profile.username} is online... GIVE ME THE CHEESE."
|
||||
@bot.update_status("online", "We're so back.", nil, 0, false, 0)
|
||||
@bot.update_status("online", "Eating cheese.", nil, 0, false, 0)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -22,7 +22,7 @@ module Commands
|
||||
cmd_key = :cheese
|
||||
cmd_desc = "Cheese."
|
||||
|
||||
bot.register_application_command(cmd_key, cmd_desc, server_id: ENV['SERVER_ID'])
|
||||
bot.register_application_command(cmd_key, cmd_desc)
|
||||
|
||||
bot.application_command(cmd_key) do |event|
|
||||
event.respond(content: "🧀")
|
||||
|
||||
@@ -24,7 +24,7 @@ module Commands
|
||||
cmd_key = :fact
|
||||
cmd_desc = "Get a random cheese fact."
|
||||
|
||||
bot.register_application_command(cmd_key, cmd_desc, server_id: ENV['SERVER_ID'])
|
||||
bot.register_application_command(cmd_key, cmd_desc)
|
||||
|
||||
bot.application_command(cmd_key) do |event|
|
||||
event.respond(content: Lists::CHEESE_FACTS.sample)
|
||||
|
||||
@@ -24,7 +24,7 @@ module Commands
|
||||
cmd_key = :photo
|
||||
cmd_desc = "Get a cheese photo."
|
||||
|
||||
bot.register_application_command(cmd_key, cmd_desc, server_id: ENV['SERVER_ID'])
|
||||
bot.register_application_command(cmd_key, cmd_desc)
|
||||
|
||||
bot.application_command(cmd_key) do |event|
|
||||
event.respond(content: Lists::CHEESE_PHOTOS.sample)
|
||||
|
||||
@@ -24,7 +24,7 @@ module Commands
|
||||
cmd_key = :truth
|
||||
cmd_desc = "The Cheese of Truth. Get a random phrase that's 100% the truth."
|
||||
|
||||
bot.register_application_command(cmd_key, cmd_desc, server_id: ENV['SERVER_ID'])
|
||||
bot.register_application_command(cmd_key, cmd_desc)
|
||||
|
||||
bot.application_command(cmd_key) do |event|
|
||||
event.respond(content: Lists::CHEESE_OF_TRUTH.sample)
|
||||
|
||||
@@ -24,7 +24,7 @@ module Commands
|
||||
cmd_key_server = :server_blacklist
|
||||
cmd_desc_server = "Blacklist the server from the trigger DMs (using the command again will whitelist the server.)"
|
||||
|
||||
bot.register_application_command(cmd_key_server, cmd_desc_server, server_id: ENV['SERVER_ID'])
|
||||
bot.register_application_command(cmd_key_server, cmd_desc_server)
|
||||
|
||||
bot.application_command(cmd_key_server) do |event|
|
||||
unless event.user.permission?(:administrator)
|
||||
|
||||
@@ -22,7 +22,7 @@ module Commands
|
||||
cmd_key = :donate
|
||||
cmd_desc = "Only if you can and want, of course."
|
||||
|
||||
bot.register_application_command(cmd_key, cmd_desc, server_id: ENV['SERVER_ID'])
|
||||
bot.register_application_command(cmd_key, cmd_desc)
|
||||
|
||||
bot.application_command(cmd_key) do |event|
|
||||
event.respond(content:"[Donate a ko-fi](https://ko-fi.com/reicore) to my creator if you can, and want.")
|
||||
|
||||
@@ -24,7 +24,7 @@ module Commands
|
||||
cmd_key = :help
|
||||
cmd_desc = "Use this command to know more."
|
||||
|
||||
bot.register_application_command(cmd_key, cmd_desc, server_id: ENV['SERVER_ID'])
|
||||
bot.register_application_command(cmd_key, cmd_desc)
|
||||
|
||||
bot.application_command(cmd_key) do |event|
|
||||
random_color = ("0x" + Random.bytes(3).unpack1('H*')).to_i(16)
|
||||
|
||||
Reference in New Issue
Block a user