BIGcheeser / claculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import discord from discord.ext import commands import os

Bot = commands.Bot(command_prefix = '.')

@Bot.event async def on_ready(): print('bot is ready')

@Bot.command() async def add(ctx,a:int,b:int): await ctx.send(a+b)

@Bot.command() async def sub(ctx,a:int,b:int): await ctx.send(a-b)

@Bot.command() async def multiply(ctx,a:int,b:int): await ctx.send(a*b)

@Bot.command() async def divide(ctx,a:int,b:int): await ctx.send(a/b)

Bot.run('token')

About