Hi everyone firstly my english and coding is not very good so I may have mistakes.
This plugin uses for answer to chat event.
For those who do not know this event: [BOT]Events asks question from global and if you answer correctly with a pm, you win 25 silk.
Plugin automatically adds questions, no need manual typing. Only tested in Pearl sro. You just drag to the plugins folder and wait for the questions to save.
so the plugin was working perfectly the last 2 months in XEON
until a new update came to the server , basically the new update change the way that sending the questing
the questions was sending in globals
but now, its sending by Notice
i tried to edit the bot by changing t ==7 instead of t ==1 and deleted the line where if player == [BOT]
and i re wrote it as :
elif server == āxeonā:
if āwinner of this roundā not in msg and āno winner for thisā not in msg:
a = 0
while True:
if a == get_qa(ālā,0):
save_q2_cache(msg) # save question if dont know
Timer(randrange(30,80), add_newq, ()).start() # automatically add questions to qafile and gui list
break
else:
if get_qa(āqā,a) == msg:
player == ā[BOT]ā
reply = get_qa(āaā,a)
Timer(randrange(answertime[0],answertime[1]), phBotChat.Private, (player,reply)).start()
log(ātriviaBot: [ā+msg+"] question replied as ["+reply+"]")
break
a += 1
it didnt work could u update it or at least help me how could i fix the error ?