added slash command for rss

This commit is contained in:
2025-04-07 02:39:21 +10:00
parent a91df8a506
commit 657b05c479
2 changed files with 10 additions and 2 deletions

View File

@@ -94,6 +94,14 @@ async def on_ready():
logger.info(f'{bot.user} has connected to Discord!')
logger.info(f"Websocket latency is {bot.latency*1000} ms")
@bot.slash_command()
async def upload(ctx):
if ctx.user.id == 345153972765720577 or ctx.user.id == 468866369782415360:
df = rss_gen.create_df()
rss_gen.create_48h_latest(df)
rss_gen.create_25_recent_feed(df)
await ctx.respond(f"Sucessfully uploaded updated RSS feed")
@bot.slash_command()
async def upload(ctx):
messagechannel = bot.get_channel(862039084683624468)