Initial Handy Helper

This commit is contained in:
2023-03-15 22:04:25 -04:00
parent 22c8203ecd
commit ffea0b04bb
11 changed files with 1334 additions and 0 deletions

1
handyhelper/__init__.py Normal file
View File

@@ -0,0 +1 @@
# Handle major modules of package

23
handyhelper/__main__.py Normal file
View File

@@ -0,0 +1,23 @@
import nextcord
from nextcord.ext import commands
import os
bot = commands.Bot()
@bot.event
async def on_ready():
print(f'We have logged in as {bot.user}')
@bot.slash_command(name="summarize", description="Summarize all or part of an article", dm_permission=True)
async def summarize(
interaction: nextcord.Interaction,
article: str,
part: Optional[str] = SlashOption(required=False)
):
print("Will summarize article.")
# TODO: Import bot token from env
bot.run(os.environ["DISCORD_TOKEN"],)
if __name__ == "__main__":
print("Handy Helper has Begun!")