actually make bot single-channel

This commit is contained in:
Emily 2021-08-24 10:41:06 +02:00
parent d0756c1901
commit 7d75c736c4
2 changed files with 2 additions and 1 deletions

View file

@ -1,3 +1,4 @@
#!/usr/bin/ruby
TOKEN = "YOUR_TOKEN_HERE"
CHANNEL = 402826623583256589

View file

@ -8,7 +8,7 @@ bot = Discordrb::Bot.new token: TOKEN
$messages = Set.new
bot.message do |event|
bot.message(in: CHANNEL) do |event|
if $messages.include? event.content then
event.message.delete "ROBOT9000 strikes again!"
else