@JellyBitz i tried to integrate this function into ur jellyDix plugin
def report_ac(args):
cur_items = get_inventory()[‘items’]
if cur_items != []:
for item in cur_items:
if item != None:
if “Arena Coin” in item[‘name’]:
#send discord notification
cur_date = datetime.today()
Notify(str(788910082175401764), “|"+character_data['name']+"
| - ACQ = “+str(item[‘quantity’])+” | “+“Date: “+str(cur_date.day)+”-”+str(cur_date.month)+”-”+str(cur_date.year))
log(‘Plugin: Arena Coins Reported’)
break
the purpose of it is report current arena coins quantity to my discrod
but i get this error:
Python Error: an integer is required (got type NoneType)
i cant figure out where is the problem
P.S: channel id is modified for privacy purposes