Removed the "server_id" from testing.

This commit is contained in:
2026-01-12 17:24:14 -03:00
parent 2c4565cdff
commit 28a31df152
8 changed files with 9 additions and 11 deletions

View File

@@ -41,8 +41,6 @@ class CheeseBot
start_bot start_bot
end end
def run def run
@bot.run @bot.run
end end
@@ -68,7 +66,7 @@ class CheeseBot
def start_bot def start_bot
@bot.ready do @bot.ready do
puts "#{@bot.profile.username} is online... GIVE ME THE CHEESE." 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
end end

View File

@@ -22,7 +22,7 @@ module Commands
cmd_key = :cheese cmd_key = :cheese
cmd_desc = "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| bot.application_command(cmd_key) do |event|
event.respond(content: "🧀") event.respond(content: "🧀")

View File

@@ -24,7 +24,7 @@ module Commands
cmd_key = :fact cmd_key = :fact
cmd_desc = "Get a random cheese 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| bot.application_command(cmd_key) do |event|
event.respond(content: Lists::CHEESE_FACTS.sample) event.respond(content: Lists::CHEESE_FACTS.sample)

View File

@@ -24,7 +24,7 @@ module Commands
cmd_key = :photo cmd_key = :photo
cmd_desc = "Get a cheese 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| bot.application_command(cmd_key) do |event|
event.respond(content: Lists::CHEESE_PHOTOS.sample) event.respond(content: Lists::CHEESE_PHOTOS.sample)

View File

@@ -24,7 +24,7 @@ module Commands
cmd_key = :truth cmd_key = :truth
cmd_desc = "The Cheese of Truth. Get a random phrase that's 100% the 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| bot.application_command(cmd_key) do |event|
event.respond(content: Lists::CHEESE_OF_TRUTH.sample) event.respond(content: Lists::CHEESE_OF_TRUTH.sample)

View File

@@ -24,7 +24,7 @@ module Commands
cmd_key_server = :server_blacklist cmd_key_server = :server_blacklist
cmd_desc_server = "Blacklist the server from the trigger DMs (using the command again will whitelist the server.)" 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| bot.application_command(cmd_key_server) do |event|
unless event.user.permission?(:administrator) unless event.user.permission?(:administrator)

View File

@@ -22,7 +22,7 @@ module Commands
cmd_key = :donate cmd_key = :donate
cmd_desc = "Only if you can and want, of course." 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| 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.") event.respond(content:"[Donate a ko-fi](https://ko-fi.com/reicore) to my creator if you can, and want.")

View File

@@ -24,7 +24,7 @@ module Commands
cmd_key = :help cmd_key = :help
cmd_desc = "Use this command to know more." 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| bot.application_command(cmd_key) do |event|
random_color = ("0x" + Random.bytes(3).unpack1('H*')).to_i(16) random_color = ("0x" + Random.bytes(3).unpack1('H*')).to_i(16)