<reponame>Tim232/discordpybot<filename>cogs/general.py<gh_stars>1-10
from discord.ext import commands


class general(commands.Cog):
    def __init__(self, bot):
        self.bot = bot
        
    @commands.command()
    async def hello(self, ctx):
      await ctx.send("hello")
    
    @commands.command()
    async def developer(self, ctx):
        await ctx.send("`! Tim23#9999` 임돠ㅏ")
        
    @commands.command()
    async def simpleeval(self, ctx, *msgs):
        try:
            msg=' '.join(msgs)
            await ctx.send(eval(msg))
        except Exception as e:
            await ctx.send(e)
      
def setup(bot):
    bot.add_cog(general(bot))

from discord.ext import commands


class general(commands.Cog):
    def __init__(self, bot):
        self.bot = bot
        
    @commands.command()
    async def hello(self, ctx):
      await ctx.send("hello")
    
    @commands.command()
    async def developer(self, ctx):
        await ctx.send("`! Tim23#9999` 임돠ㅏ")
        
    @commands.command()
    async def simpleeval(self, ctx, *msgs):
        try:
            msg=' '.join(msgs)
            await ctx.send(eval(msg))
        except Exception as e:
            await ctx.send(e)
      
def setup(bot):
    bot.add_cog(general(bot))
#9999` 임돠ㅏ")