diff --git a/DiscordBot.py b/DiscordBot.py index 5c4eb43..7149f2d 100644 --- a/DiscordBot.py +++ b/DiscordBot.py @@ -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) diff --git a/rss_gen.py b/rss_gen.py index 2c40cea..49a75e6 100644 --- a/rss_gen.py +++ b/rss_gen.py @@ -11,14 +11,14 @@ XML_BEGIN_RECENT = """Torfiles RSS Feed en 5 - """ + """ XML_BEGIN_LAST = """Torfiles Last 48h https://torfiles.fieryeagle.org Torfiles RSS Feed en 5 - """ + """ XML_END = """"""