Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- msgsss = await message.channel.send(embed=embed)
- [..]
- mycursor.execute(f"SELECT * FROM servers")
- myresult = mycursor.fetchall()
- msgids = []
- for server in myresult:
- try:
- x1 = [server]
- guild = bot.get_guild(int(x1[0][0]))
- channel = bot.get_channel(int(x1[0][1]))
- async with channel.typing():
- if channel and channel.id != notchannel.id:
- msg = await channel.send(embed=embed)
- msgids.append(str(msg.id))
- except:
- pass
- new = " ".join(msgids)
- now = datetime.now()
- zeit = 1
- unmute = now + timedelta(days=zeit)
- unmutestr = unmute.strftime("%Y-%m-%d %H:%M:%S")
- sql = f"INSERT INTO messeges (messageID, code, ids, time) VALUES ({msgsss.id}, '{CODE}', '{new}', '{unmutestr}')"
- mycursor.execute(sql)
- mydb.commit()
Advertisement
Add Comment
Please, Sign In to add comment