Skip to content

Commit

Permalink
updated sourcecode command
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulsender committed Aug 26, 2022
1 parent 83f68f2 commit 68e1615
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
from colorama import Fore
from discord.ext import commands
from dotenv import load_dotenv
from daemonize import Daemonize
import asyncio

load_dotenv()

pid = "/tmp/gokano_botd.pid"

intents = discord.Intents.default()
intents.message_content = True
client = commands.Bot(command_prefix="*", activity=discord.Game(name="I'm in fucking alpha don't expect much"),
Expand All @@ -33,7 +36,7 @@ async def on_ready():


@client.command()
async def sourcehelp(ctx):
async def sourcecode(ctx):
embed = discord.Embed(title="__Source Code__", color=0x4287f5)
embed.add_field(name="Source code available on github", value="https://github.com/Soulsender/Earth-Invader",
inline=False)
Expand Down Expand Up @@ -86,3 +89,5 @@ async def servers(ctx):
await client.start(str(os.getenv('TOKEN')))

asyncio.run(main())
daemon = Daemonize(app="gokano_botd", pid=pid, action=main)
daemon.start()

0 comments on commit 68e1615

Please sign in to comment.