Skip to content

Commit 6729855

Browse files
committed
Update bot.py
1 parent 2247fe9 commit 6729855

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

src/bot.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -60,29 +60,29 @@ async def startup(self):
6060
await self.clone_database()
6161
await self.wait_until_ready()
6262
print("\n\n len(self.guilds) = " + str(len(self.guilds)) + "\n\n")
63-
for guild in self.guilds:
64-
embed = discord.Embed(
65-
title="**NEW UPDATE**",
66-
description="**[*dex*]("+self.REPOSITORY_URL+") version 2.1.1**",
67-
color=self.DEX_YELLOW,
68-
timestamp=datetime.utcnow()
69-
)
70-
changes1 = "**`1.`**: *Help Menu is customized; Use* `"+self.DATABASE['guilds'][str(guild.id)]['prefix']+"help` *to check it out!*\n"
71-
changes2 = "**`2.`**: *Command* `changepref` *is now changed to just* `prefix` *(though the former is still valid);*\n"
72-
changes3 = "**`3.`**: *Command* `prefixspace` *got a new alias* `prefspc`*;*\n"
73-
embed.add_field(
74-
name="**Changes**",
75-
value=changes1+changes2+changes3,
76-
inline=False
77-
)
78-
embed.set_author(icon_url=self.CC_LOGO_URL,
79-
name="| codechaser#0647", url=self.REPOSITORY_URL)
80-
general = None
81-
for channel in guild.text_channels:
82-
if channel.permissions_for(guild.me).send_messages:
83-
general = channel
84-
if general is not None:
85-
await general.send(embed=embed)
63+
# for guild in self.guilds:
64+
# embed = discord.Embed(
65+
# title="**NEW UPDATE**",
66+
# description="**[*dex*]("+self.REPOSITORY_URL+") version 2.1.1**",
67+
# color=self.DEX_YELLOW,
68+
# timestamp=datetime.utcnow()
69+
# )
70+
# changes1 = "**`1.`**: *Help Menu is customized; Use* `"+self.DATABASE['guilds'][str(guild.id)]['prefix']+"help` *to check it out!*\n"
71+
# changes2 = "**`2.`**: *Command* `changepref` *is now changed to just* `prefix` *(though the former is still valid);*\n"
72+
# changes3 = "**`3.`**: *Command* `prefixspace` *got a new alias* `prefspc`*;*\n"
73+
# embed.add_field(
74+
# name="**Changes**",
75+
# value=changes1+changes2+changes3,
76+
# inline=False
77+
# )
78+
# embed.set_author(icon_url=self.CC_LOGO_URL,
79+
# name="| codechaser#0647", url=self.REPOSITORY_URL)
80+
# general = None
81+
# for channel in guild.text_channels:
82+
# if channel.permissions_for(guild.me).send_messages:
83+
# general = channel
84+
# if general is not None:
85+
# await general.send(embed=embed)
8686

8787
def get_pref(self, _, message):
8888
return self.DATABASE['guilds'][str(message.guild.id)]['prefix']

0 commit comments

Comments
 (0)