import discord, time, random, os from discord.ext import commands, tasks from config import slova, sus_responses, greetings, main_channels_ids, bot_messages, bot_reply_messages t_h = 0 t_s = 0 intents = discord.Intents.default() intents.message_content = True intents.members = True client = commands.Bot(command_prefix = '~', intents=intents) ############################################################################################################## ##################################### COMMNADS AND FUNCTIONS SCRIPTS ######################################### ############################################################################################################## async def chat_participation(): #randmonly sends messages into main channels for idd in main_channels_ids: channel = client.get_channel(idd) members = channel.members members_ids = [] for member in members: members_ids.append(member.id) members_ids.remove(client.user.id) rnid = random.choice(members_ids) msg = (random.choice(bot_messages)).strip() if "@random" in msg: msg = msg.replace("@random", f"<@{rnid}>") if "