transfervaryt
Picopat
- Katılım
- 18 Ekim 2023
- Mesajlar
- 29
Daha fazla
- Cinsiyet
- Erkek
Hata almıyorum fakat düzgün çalışmıyor. Neden biliyor musunuz?
Kod:
import discord
from discord.ext import commands
from random import randint as r
import time
intents = discord.Intents.default()
intents.message_content = True
Bot = commands.Bot(command_prefix="c! ", intents=intents)
Cevapli = 0
@Bot.command()
async def tamin(ctx,args):
Cevapli = r(1,4)
print(Cevapli)
zor = str(Cevapli)
if args == Cevapli:
await ctx.message.add_reaction("")
await ctx.send("Doğru! Cevap " + zor + " Seçeneğidir.")
else:
await ctx.message.add_reaction("")
await ctx.send("Yalnış! Cevap " + zor + " Seçeneğidir.")
#ctx = msg veri alma
Bot.run('-------')
Aldığım cevap:
Ben-c! tamin 1
O-Yanlış! Cevap 1 Seçeneğidir.
Kod:
import discord
from discord.ext import commands
from random import randint as r
import time
intents = discord.Intents.default()
intents.message_content = True
Bot = commands.Bot(command_prefix="c! ", intents=intents)
Cevapli = 0
@Bot.command()
async def tamin(ctx,args):
Cevapli = r(1,4)
print(Cevapli)
zor = str(Cevapli)
if args == Cevapli:
await ctx.message.add_reaction("")
await ctx.send("Doğru! Cevap " + zor + " Seçeneğidir.")
else:
await ctx.message.add_reaction("")
await ctx.send("Yalnış! Cevap " + zor + " Seçeneğidir.")
#ctx = msg veri alma
Bot.run('-------')
Aldığım cevap:
Ben-c! tamin 1
O-Yanlış! Cevap 1 Seçeneğidir.