more drinks in coffee

This commit is contained in:
vulpine 2020-09-16 19:55:00 -04:00
parent 773a6b8e6e
commit 79079c0910
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import random
async def coffeeup(self,c,n,m):
if c in ['#coffee','#tea','#water']:
if c[1:]+"!" in m and c+'!' not in m:
if (c[1:]+"!" in m and c+'!' not in m) or c=='#coffee' and ('latte!' in m or 'espresso!' in m):
cc = self.coffee.find_one(name=c)
if cc:
self.coffee.update(dict(name=c,value=cc['value']+1),['name'])