Tek dosya halinde yaptım.
@Aerosteon çok teşekkür ederim çalışıyor.
[CODE lang="python" title="Dc Bot"]import discord
from discord.ext import commands
import random
from webserver import keep_alive
client = discord.Client()
keep_alive()
Bot = commands.Bot(command_prefix='!m ')
@Bot.event
async def on_ready():
print("Bot çalışıyor." + str(Bot.user))
#------------------------------------------------------------------------
@Bot.command()
async def yardım(msg):
await msg.send('-Buraya bot komutları-')
#sa-as
@Bot.event
async def on_message(message):
if message.author == client.user:
return
if message.content == ("Sa"):
await message.channel.send("as")
if message.content == ("sa"):
await message.channel.send("as")
await Bot.process_commands(message)
@Bot.command()
async def musty(msg):
await msg.send('Merhaba ben MusTy')
#temizleme
@Bot.command()
async def temizle(ctx,amount=15):
await ctx.channel.purge(limit=amount)
#zaratma
@Bot.command()
async def zar(msg):
zar = random.randint(1,6)
await msg.send("Zar {} geldi.".format(zar))
#Ders programı
@Bot.command()
async def dersprogramı(msg):
await msg.send('a')
#Ödevler
@Bot.command()
async def ödevler(msg):
await msg.send('a')
Bot.run("token")[/CODE]