Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jonan270 committed Dec 29, 2022
1 parent df258b0 commit 639f606
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 2 additions & 9 deletions BOTLarry.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
'anubis'
]

def isLarry(name):
return name == 'larryloverbone' or name == 'larryloverbone1'

# Get some classic larry quotes from text file
def getQuote():
quotes = open('quotes.txt', 'r', encoding = 'utf8')
Expand Down Expand Up @@ -78,7 +75,7 @@ def mapQuote(map):
'... Men vi kör den ändå!'
),
(
f'Kan vi inte bara ta en {map}? Känns som '
f'Kan vi inte bara ta en {map}? Känns som'
' det var längesen.'
)
]
Expand All @@ -99,7 +96,7 @@ async def getCorrectResponse(content):
print("larry")
return getQuote()
elif 'telefon' in msg or 'mobil' in msg:
return "Aa fan att tekniken alltid ska strula asså!"
return 'Aa fan att tekniken alltid ska strula asså!'
elif msg == '!karta':
return mapQuote(random.choice(mapPool))
elif firstWord == '!crosshair':
Expand Down Expand Up @@ -137,9 +134,5 @@ async def on_message(message):
response = await getCorrectResponse(message.content)
if response:
await activeTextChannel.send(response)
#elif isLarry(message.author.name):
# await textChannel.send(getCorrectResponse('!larry'))



client.run(DISCORD_TOKEN)
2 changes: 0 additions & 2 deletions crosshairgenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ def getCrosshair(msgContent):
else:
return "!crosshair följt av ett namn hade ju vart trevligt."


# Gap beroende på om man har dot
# Generate a random semi-reasonable crosshair
def _randCrosshair():
useDot = _percentChance(30)
Expand Down

0 comments on commit 639f606

Please sign in to comment.