From 4ed74758ce46b1c736cba143b9eb5b7063b6b450 Mon Sep 17 00:00:00 2001 From: Paillat Date: Sat, 10 Dec 2022 09:36:06 +0100 Subject: [PATCH] Update chat.py --- code/cogs/chat.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/cogs/chat.py b/code/cogs/chat.py index 19c88c5..1fa896b 100644 --- a/code/cogs/chat.py +++ b/code/cogs/chat.py @@ -164,18 +164,18 @@ class Chat (discord.Cog) : # 5 included debug("User is not premium, sending a random message") random_number = random.randint(1, 20) - if random_number == 3: + if random_number == 30: embed = discord.Embed(title="Support us by donating here!", url="https://www.buymeacoffee.com/paillat", description="Botator is a free discord bot, but it costs money to run our servers. If you want to support us, you can donate here: https://www.buymeacoffee.com/paillat. For only **2$** a month, you can remove this message and have a daliy maximal usage of **4000** uses instead of **400**. You will acces also to restricted help channels on our discord server,", color=0x00ff00) await message.channel.send("**This message has 10% chance to appear. It will disappear in 60 seconds.**", embed=embed, delete_after=60) debug("The \"support us\" message has been sent") - elif random_number == 11 or random_number == 12: + elif random_number == 11: #add the picture https://cdn.discordapp.com/attachments/800029200886923318/1050935509930754058/icons8-discord-new-480.png embed = discord.Embed(title="Join our discord server!", url="https://discord.gg/pB6hXtUeDv", description="You need help with Botator? You can join our discord server and ask for help in the help channel. You can also suggest new features and report bugs. You can also join our discord server to talk with other Botator users and the Botator team, by on the following link: https://discord.gg/pB6hXtUeDv", color=0x00ff00) embed.set_thumbnail(url="https://cdn.discordapp.com/attachments/800029200886923318/1050935509930754058/icons8-discord-new-480.png") - await message.channel.send("**This message has 10% chance to appear. It will disappear in 60 seconds.** \nhttps://discord.gg/pB6hXtUeDv", embed=embed, delete_after=60) + await message.channel.send("**This message has 5% chance to appear. It will disappear in 60 seconds.** \nhttps://discord.gg/pB6hXtUeDv", embed=embed, delete_after=60) debug("The \"join our discord server\" message has been sent") @discord.slash_command(name="say", description="Say a message") async def say(self, ctx: discord.ApplicationContext, message: str): debug(f"The user {ctx.author.display_name} ran the say command command in the channel {ctx.channel} of the guild {ctx.guild}, named {ctx.guild.name}") await ctx.respond("Message sent !", ephemeral=True) - await ctx.send(message) \ No newline at end of file + await ctx.send(message)