added slash command for rss
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user