Skip to content

Commit

Permalink
Added commands 'magic8ball' and 'headsortails'.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarik Pokras committed Jan 22, 2023
1 parent 848984b commit de2dd65
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import random
import maskpass
import start
import signal
Expand Down Expand Up @@ -74,6 +75,12 @@ def cls():
elif cmdLine == "webcon":
webconp=input("webcon> ")
os.system("curl " + webconp)
elif cmdLine == "headsortails":
headsortails = ['Heads', 'Tails']
print(random.choice(headsortails))
elif cmdLine == "magic8ball":
ball = ['It is certain.', 'It is so.', 'Without a doubt.', 'Yes.', 'You can count on it.', 'As I see it, yes.', 'Most likely.', 'Outlook is good.', 'Absolutely.', 'All signs point to yes.', 'Reply hazy, try again.', 'Ask again later.', 'Better not tell you now.', 'Cannot predict now.', 'Concentrate and ask again.', 'Don\'t count on it.', 'My reply is no.', 'All signs point to no.', 'Outlook not so good.', 'Doubtful.']
print(random.choice(ball))
elif cmdLine == "custcol":
custcolc=input("Enter color: ")
if custcolc == "default":
Expand Down

0 comments on commit de2dd65

Please sign in to comment.