- let
- channel = m.gchannel
-
- if rand(100) < 04:
- let messages = ["gimme balls", "balls", "more balls"]
- echo "sending to balls channel"
- discard await discord.api.sendMessage(ballsChannel, messages[rand(
- messages.high)])
-
- if m.author.username == "mooooooo0":
- if rand(100) < 02:
- await m.react("🫡")
- if rand(100) < 02:
- discard await m.reply("what that guy said", mention = true)
-
- if m.referenced_message.isSome():
- if m.referenced_message.get().author.username == "moo bot" and not (
- m.author.id == getOutBot):
- discard await m.reply("it is I", mention = true)
-
- if m.content.contains("moo") or m.content.contains("taran"):
- discard await m.reply("ig bro", mention = true)
-
- if m.author.id == getOutBot and (m.referenced_message.isNone or
- m.referenced_message.get.author.username != "moo bot"):
- let responses = ["stfu bot", "get a load of this guy ^^", "NERD ALERT 🚨", "stfu clanker"]
- discard await m.reply(responses[rand(responses.high)], mention = true)
-
- if rand(100) < 05:
- let emojis = ["🥵", "🥶", "🤯", "🤓", "🫦", "🪱", "🦧", "distorted_face:1541167187694460999"]
- await m.react(emojis[rand(emojis.high)])
-
- if m.mention_users.len > 0:
- if m.mention_users[0].username == "moo bot" and not (m.author.id == getOutBot):
- discard await m.reply("wassup", mention = true)
-
- if m.content.contains("simon says kys"):
- echo "killing self"
- discard await channel.send("bye bye")
- quit()
+ discard await cmd.handleMessage("$$", s, m)
+ try:
+ if rand(100) < 03:
+ let messages = ["gimme balls", "balls", "more balls"]
+ echo "sending to balls channel"
+ discard await discord.api.sendMessage(ballsChannel, messages[rand(
+ messages.high)])
+
+ if m.author.username == "randomduck174" and rand(100) < 10:
+ await m.react("elijahmouse:1546781069640998934")
+ if m.author.username == "grangel613" and rand(100) < 10:
+ await m.react("angelaDC:1552110132748484638")
+ if m.author.username == "lovematch13" and rand(100) < 10:
+ await m.react("Franklini:1556748528146063492")
+
+ if m.author.username == "mooooooo0":
+ if rand(100) < 01:
+ await m.react("🫡")
+ if rand(100) < 01:
+ discard await m.reply("what that guy said", mention = true)
+
+ if m.referenced_message.isSome():
+ if m.referenced_message.get().author.username == "moo bot" and not ((
+ m.author.id == getOutBot) or (m.author.username == "moo bot")):
+ discard await m.reply("it is I", mention = true)
+
+ if m.content.contains("moo") or m.content.contains("taran"):
+ discard await m.reply("ig bro", mention = true)
+
+ if m.author.id == getOutBot and (m.referenced_message.isNone or
+ m.referenced_message.get.author.username != "moo bot"):
+ if rand(100) < 02:
+ let responses = ["stfu bot", "get a load of this guy ^^",
+ "NERD ALERT 🚨", "stfu clanker"]
+ discard await m.reply(responses[rand(responses.high)], mention = true)
+
+ if rand(100) < 01:
+ let emojis = ["🥵", "🥶", "🤯", "🤓", "🫦", "🪱", "🦧", "distorted_face:1541167187694460999"]
+ await m.react(emojis[rand(emojis.high)])
+
+ if m.mention_users.len > 0:
+ if m.mention_users[0].username == "moo bot" and not ((m.author.id == getOutBot) or (m.author.username == "moo bot")):
+ discard await m.reply("wassup", mention = true)
+
+ if m.content.contains("?") and rand(100) < 30:
+ discard await m.reply("ur mom", mention = true)
+
+ if m.content.contains("simon says kys"):
+ echo "killing self"
+ discard await m.reply("bye bye")
+ quit()
+ except CatchableError as e:
+ echo "messageCreate failed: ", e.name, ": ", e.msg
+ echo getStackTrace(e)