Remove unused import from palworld.py

This commit is contained in:
Luke Robles 2024-01-24 12:24:00 -08:00
parent 81a486d7d3
commit 02b7f20d77
2 changed files with 32 additions and 6 deletions

View File

@ -3,12 +3,6 @@ from discord.ext import commands, tasks
import discord
if os.getenv("DRAGON_ENV") == "prod":
channel_id = 1097567909640929340
else:
channel_id = 932476007439552522
class PalWorld(commands.Cog):
def __init__(self, bot):
self.bot: commands.Bot = bot

32
app/cogs/palworld.py Executable file
View File

@ -0,0 +1,32 @@
from bs4 import BeautifulSoup
from discord import option
from discord.ext import commands, tasks
import discord
import os
import requests
import json
if os.getenv("DRAGON_ENV") == "prod":
channel_id = 1097567909640929340
else:
channel_id = 932476007439552522
class PalWorld(commands.Cog):
def __init__(self, bot):
self.bot: commands.Bot = bot
@commands.slash_command(
guild_ids=None,
name="elements",
description="Posts an infographic about which Pal elements are weak/strong against which",
)
async def post_medpen_guide(self, ctx: commands.Context):
await ctx.respond(
"https://img.game8.co/3822502/5ae8382d16bd390dd19f343e87680d51.png/show"
)
def setup(bot):
bot.add_cog(PalWorld(bot))