Я хотел бы отправить автоматическое сообщение о разногласиях через бот, когда a не равно b. У меня работают и другие команды, но все они требуют ввода данных пользователем через Discord
from discord.ext import commands
import requests
import time
import threading
client = commands.Bot(command_prefix = '!')
TOKEN = ('my bot token')
def rep():
threading.Timer(10.0, rep).start()
rep.a = ("aaa")
rep.b = ("bbb")
if rep.a == rep.b :
print("a does in fact equal b")
#other stuff
else:
print("a does not equal b")
#send a message through the discord bot
#other stuff
rep()
client.run(TOKEN)
Подробнее здесь: https://stackoverflow.com/questions/576 ... ion-is-met