❓ Prompts for bot token on first time startup
This commit is contained in:
@ -279,7 +279,7 @@ async def on_message(message):
|
||||
|
||||
|
||||
# Is a bit sassy sometimes
|
||||
meanWords = ["stupid", "bitch", "fuck"]
|
||||
meanWords = ["stupid", "bitch", "fuck", "dumb", "idiot"]
|
||||
if ("gwendolyn" in message.content.lower() or message.content.startswith("!")) and any(x in message.content.lower() for x in meanWords) and "ikke" not in message.content.lower() and "not" not in message.content.lower():
|
||||
funcs.logThis(message.author.name+" was a bit mean")
|
||||
emoji = random.choice(["😠", "🖕", "👎"])
|
||||
|
13
README.md
13
README.md
@ -2,6 +2,17 @@
|
||||
|
||||
Gwendolyn is a discord bot that I made. It does a bunch of stuff.
|
||||
|
||||
## Stuff it can do
|
||||
Roll dice!
|
||||
Look up D&D monsters and spells!
|
||||
Find random pictures!
|
||||
Find random movies!
|
||||
Generate names for taverns and people!
|
||||
Roll Star Wars RPG dice!
|
||||
Keep track of Star Wars RPG character sheets!
|
||||
|
||||
And much more!!! (not really. That's pretty much all it can do. See help files in resources directory for list of commands)
|
||||
|
||||
## Setup
|
||||
|
||||
Create a file named "token.txt" that contains your bot token.
|
||||
Running gwendolyn.py will help you set up. You will need a bot token on hand, which you should paste into your terminal when prompted.
|
||||
|
@ -162,9 +162,10 @@ def makeFiles():
|
||||
try:
|
||||
f = open("token.txt","r")
|
||||
except:
|
||||
logThis("token.txt didn't exist. Write your bot token in the file.")
|
||||
with open("resources/token.txt","w") as f:
|
||||
f.write("Replace this line with bot token")
|
||||
logThis("token.txt didn't exist. Write your bot token below, or in token.txt later.")
|
||||
token = input()
|
||||
with open("token.txt","w") as f:
|
||||
f.write(token)
|
||||
|
||||
finally:
|
||||
f.close()
|
1
token2.txt
Normal file
1
token2.txt
Normal file
@ -0,0 +1 @@
|
||||
MzgwNzI4OTkwMTEwODQyODgx.XoC1ng.2DJBNidZQiP_2JoZYsJ77ZRoipE
|
Reference in New Issue
Block a user