Skip to content

Commit

Permalink
fuck
Browse files Browse the repository at this point in the history
  • Loading branch information
Butterroach committed Apr 23, 2024
1 parent 5caee3e commit 775bb2e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
DISCORD_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DISCORD_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
CHANNEL_ID=everywhere
# ^ or a channel id
11 changes: 5 additions & 6 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
intents = discord.Intents.default()
intents.message_content = True
client = commands.Bot(command_prefix="[[", intents=intents)
tree = client.tree
with open("silly_words.json") as f:
words = (
list(
Expand All @@ -27,17 +26,17 @@

@client.event
async def on_ready():
for guild in client.guilds:
# someone online said you shouldn't do this but fuck them
await tree.sync(guild=guild)
print("nya~ im ready!!!! :3 :3 :3 :3")


@client.event
async def on_message(msg: discord.Message):
await client.process_commands(msg)
if msg.channel.id != 1232165944168546346:
return
if (
str(msg.channel.id) != os.getenv("CHANNEL_ID")
and not os.getenv("CHANNEL_ID") == "everywhere"
):
return 0
print("omg message :3 :3 :3 :3")
if msg.author.bot:
print("bot :(")
Expand Down

0 comments on commit 775bb2e

Please sign in to comment.