Compare commits

..

No commits in common. "de4369afb0d41d6d840b968918e984d19f46da8d" and "eabaa99471af151c47b91419b03e07cd036244a4" have entirely different histories.

2 changed files with 1 additions and 16 deletions

View File

@ -1,11 +1,8 @@
# ToDo
- [ ] Wikipedia speedrun timer a leaderboard
# Token Security
- [ ] how to import it
# Docs by
- [Discrod.py](https://discordpy.readthedocs.io/en/stable/index.html)
- [Wikipedia.py](ttps://wikipedia.readthedocs.io/en/latest/code.html)
- [Wikiipedia.py](ttps://wikipedia.readthedocs.io/en/latest/code.html)

View File

@ -63,16 +63,4 @@ async def search(ctx, search: Option(str, description = "What do you want to get
@bot.slash_command(guild_ids=g_ids, name = "random", description="Returns a random Wikipedia article")
async def search(ctx):
await ctx.channel.trigger_typing() # shows that bot is typing
ran_article = wikipedia.random().replace(" ", "_").replace(" ", "_")
try:
await ctx.respond(f"https://en.wikipedia.org/wiki/{ran_article}")
except:
await ctx.send(f"https://en.wikipedia.org/wiki/{ran_article}")
bot.run("MTMyNTk1Mzg4OTcyNzQxNDM0Mw.G2Tgo0.2OhbgaVYhys0BhxJMVgGDnG0W5qvxH-soJML3M")