This commit is contained in:
vulpine 2020-10-04 18:58:27 -04:00
parent 4fd2ae9d00
commit c813e5c986
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','#CAPS']:
if (c[1:]+"!" in m and c+'!' not in m) or c=='#coffee' and ('latte!' in m or 'espresso!' in m):
if (c[1:]+"!" in m and c+'!' not in m) or c=='#coffee' and ('latte!' in m or 'espresso!' in m) or c=='#tea' and ('chai!' in m):
cc = self.coffee.find_one(name=c)
if cc:
self.coffee.update(dict(name=c,value=cc['value']+1),['name'])