09:56 -!- mode/#tnnt [+o Croesus] by ChanServ 09:56 !ping 09:56 oh right 09:56 $ping 09:56 hmm 09:56 oh shit Croesus is in here 09:56 gotta use $ cause the bot only talks money 09:56 $who 09:57 errors in the log 09:57 pastebin that shit 09:57 one sec 09:57 @K2 | commented out TRIGGER 09:57 you may want to uncomment that 09:57 ah right 09:58 -!- mode/#tnnt [+o Croesus] by ChanServ 09:59 $who 09:59 did you make tnnt available to us for testing purposes 09:59 yes 09:59 sehr gut 09:59 $who 09:59 hmm 10:00 just on hdf? 10:00 hdf-us yeah 10:00 use & to start a game from the tnnt menu 10:00 hm which account 10:00 i tried aoei on hdf-eu and hdf-us 10:00 hdf-us 10:00 wait & 10:00 ok 10:01 * arahael writes this down! secret invocations! 10:01 https://termbin.com/aedn 10:01 * aosdict again wonders why this is happening in public channel 10:02 looks like its having trouble with the telbuf thingy for !tell 10:02 yeah 10:02 can think of no reason why that would be an issue unless you dont have write access to BOTDIR 10:02 but you already stated that you do have so 10:02 aosdict we're doing this here because we're testing Croesus 10:03 i mean can easily give Croesus a diff chan in the list 10:03 its fine 10:03 oh, i dont care either 10:04 -!- mode/#tnnt [+o Croesus] by ChanServ 10:05 $who 10:05 $ping 10:05 hmm 10:05 i let it rebuild the tellmsg.db 10:06 $ping 10:07 still doesnt like it same errors 10:07 @K2 | i let it rebuild the tellmsg.db <-- what does this mean? 10:07 i killed tellmsg.db 10:07 restarted bot 10:07 it recreated tellmsg.db 10:07 hmmmm 10:08 !tell aoei hi 10:08 use $ 10:08 oh right, croesus only appreciates money 10:08 $tell aoei hi 10:08 &play tnnt 10:08 get it cause & 10:08 hexdump the tellmsg.db 10:08 i played a game of tnnt and died at orctown but i got a missing code scroll 10:08 as a healer 10:09 now im all tnntd out for the year :P 10:09 Demo: it's still 2020, dont worry. 10:11 oh ok 10:11 K2: try moving these two lines up to the class initializer 10:11 and removving the self. 10:11 # for !tell 10:11 self.tellbuf = shelve.open(BOTDIR + "/tellmsg.db", writeback=True) 10:11 # for !setmintc 10:11 self.plr_tc = shelve.open(BOTDIR + "/plrtc.db", writeback=True) 10:12 * arahael screams in parseltongue. 10:12 arahael: what 10:13 it means "arahael hisses" 10:13 but why tho 10:13 aoei: just carry on, not a huge fan of python these days - especially shelve, though here it is appropriate. 10:13 oh i also hate shelve 10:13 * arahael used to be a *major* python fan 10:13 if you're not a huge fan of python why are you screaming in snake language? huh? huh? 10:14 ok 10:14 but im pickinng my battles when it comes to fixing this god awful bot 10:14 aosdict: too much whisky 10:15 i think python is cool actually 10:15 aoei where do i move those lines to exactly? 10:15 class DeathBotProtocol(irc.IRCClient): 10:15 just under that 10:15 and indented only 4 spaces 10:19 -!- mode/#tnnt [+o Croesus] by ChanServ 10:19 $ping 10:20 oh 10:20 one sec 10:23 -!- mode/#tnnt [+o Croesus] by ChanServ 10:23 $tell aoei wut 10:23 No worries, K2, I've got this! 10:23 :0 10:23 aoei: Message from K2 at 2021-09-26 10:23 EDT: wut 10:23 how u fix 10:23 $help 10:23 aosdict: https://github.com/tnnt-devteam/tnntbot/blob/master/botuse.txt 10:23 https://github.com/k21971/beholder/blob/master/beholder.py#L692 10:24 $who 10:24 yeah havent gotten there yet 10:24 $asc aosdict 10:24 did you put the lines back to the method 10:24 and then add taht try/accept 10:24 er 10:24 try/except 10:25 i made those lines i linked in beholder bot be the same in tnntbot 10:25 that's why they work now 10:26 yes i know 10:26 just making sure you also undid the change i suggested 10:26 i did 10:26 kk 10:26 bot wouldnt load 10:27 $setmintc 1000 10:28 $setmintc 10:28 hmm 10:28 $setmintc 10:28 welp 10:28 paste the latest errors 10:28 $help 10:28 aoei: https://github.com/tnnt-devteam/tnntbot/blob/master/botuse.txt 10:28 oh that still works 10:28 $tea 10:29 -!- mode/#tnnt [+o Croesus] by ChanServ 10:30 $setmintc 10:31 https://termbin.com/ngs3 10:32 $who 10:33 ah for that you'll need a dummy scoreboard.json file 10:33 still have the one from last year 10:33 yeah but the format is dumb so i changed it 10:33 format was dumb 10:33 that's a detail that would have been worth sharing 10:34 im sharing it now 10:34 stellar 10:34 :b 10:34 how should i send you the dummy file 10:34 eh ill just paste it 10:34 its small enough 10:35 i basically just removed the 'all' keys from players and wahtever else and removed a layer of nesting 10:35 because it was redundant 10:36 https://dpaste.org/t2Nu 10:36 got iy 10:36 it 10:37 -!- mode/#tnnt [+o Croesus] by ChanServ 10:37 $who 10:37 $ping 10:37 K2: Pong! 10:37 oh my 10:37 $ping works >:O 10:37 aoei: Pong! works >:O 10:38 any errors? 10:38 tailing the log 10:38 lemme try dying 10:38 so far just: 10:38 2021-09-26 10:37:03-0400 [-] Main loop terminated. 10:38 2021-09-26 10:37:04-0400 [-] Log opened. 10:38 2021-09-26 10:37:04-0400 [-] Starting factory <__main__.DeathBotFactory object at 0x7f0f59f81080> 10:38 2021-09-26 10:37:04-0400 [-] Started to connect. 10:38 2021-09-26 10:37:04-0400 [-] Connected. 10:38 2021-09-26 10:37:04-0400 [-] Resetting reconnection delay 10:38 $setmintc 10:39 $whereis aoei 10:39 $commands 10:39 K2: available commands are help ping time tell source lastgame lastasc asc streak rcedit scores sb score clanscore clantag whereis players who commands 10:39 $setmintc 10:39 hmmmm thats still a problem that one ? 10:39 yup 10:39 nothing new in the log 10:40 lol these class names are epic 10:40 death bot factory and death bot protocol 10:40 irc logging is working - https://www.hardfought.org/tnnt/irclog/%23tnnt-2021-09-26.log 10:41 brb 10:42 lol Demo 10:42 i wanna say i introduced those but im not sure if true 10:43 ah OK 10:43 DeathBotProtocol was already a thing 10:43 I introduced DeathBotFactory 10:44 was necessary due to API changes for twisted's python3 updated version 10:47 aoei want me to commit the changes I have so far? 10:50 yes do that 11:01 pushed 11:01 i also renamed tnnt.botconf to tnntbotconf 11:01 matches naming conv for other botconf i have on server 11:02 brb 11:03 mkay 11:03 waht about death messages and setmintc 11:03 we gotta fix those 11:07 i know. not sure what to do there 11:08 well were there error messages 11:09 i had death messages working on my local instance before 11:10 hah i forgot 11:10 setmintc isnt a thing with tnntbot 11:10 oh lmao 11:10 tournament, no hiding events 11:10 it still didnt report my death tho 11:11 lemme try again hm 11:11 right, need to figure that one out 11:11 also $who and $where or w/e sthould sitll fucntion 11:11 $where 11:11 $who 11:14 data is writing to the inprogress-tnnt folder 11:14 $who 11:14 $whereis k2 11:15 same for whereis 11:15 files are there to be read 11:18 whats FILEROOT set to in the botconf 11:19 just died again and no report 11:21 FILEROOT is correct 11:21 FILEROOT+"tnnt/var/xlogfile" FILEROOT+"tnnt/var/livelog" 11:21 are those correct? 11:21 tahts what its lookin for 11:22 FILEROOT isnt even used in the botconf 11:22 its set in botcont and used in tnntbot.py 11:22 set in botconf* 11:22 lines 252, 253 and other places 11:23 yup 11:23 any error messages in the og? 11:23 log* 11:23 FILEROOT is correct 11:23 checking logs again 11:24 https://termbin.com/kfs4 11:24 also for !who and !whereis it constructs FILEROOT+"dgldir/"+"inprogress-" which tnnt would be tacked onnto the end of 11:24 those paths are also correct 11:24 those never changed 11:25 and the inprogress/whereis files its looking for are generated, perms are correct 11:25 this might be other things Tangles had to change for beholder 11:26 did you put the dummy scorebaord file in place that i gaev you 11:26 i still see scoreboard errors 11:26 yes 11:26 but w/e theres also 11:26 i did 11:26 brb 11:31 wirec = parse_xlogfile_line(open(wipath, "r").read().strip(),":") <-- remove the .read().strip() bit of that 11:32 line 1161 or so 11:32 ok 11:32 if im right that'll fix it 11:33 so it should read 11:33 wirec = parse_xlogfile_line(open(wipath, "r") 11:38 -!- mode/#tnnt [+o Croesus] by ChanServ 11:38 ok ok 11:38 sorry 11:38 wait how do you have a variant then 11:39 $who 11:39 i'm still learning 11:39 $whereis aoei 11:39 bleh 11:39 but none of this shit is intuitive to me 11:39 esp python 11:39 $whereis k2 11:39 $whereis aoei 11:39 more errors? 11:40 https://termbin.com/h6ul 11:40 toward bottom 11:41 from timestamp 11:39.33 on 11:41 yeah i see it 11:43 why is it still not reporting my deaths tho 11:43 do you see any new eror rmessage 11:43 i just died 11:44 nothing new 11:44 ok weird 11:45 wonder if there's a mintc or something im not exceeding 11:46 -!- mode/#tnnt [+o Croesus] by ChanServ 11:47 $who 11:47 ooh hah 11:49 -!- mode/#tnnt [+o Croesus] by ChanServ 11:49 saw how tangles had it in beholder 11:49 forgot to copy file over 11:49 $who 11:50 $who 11:50 $whereis aoei 11:50 gsadfdsafda 11:51 -!- mode/#tnnt [+o Croesus] by ChanServ 11:51 $who 11:51 $whereis aoei 11:51 $who 11:53 -!- mode/#tnnt [+o Croesus] by ChanServ 11:53 $whereis k2 11:53 hmm 11:53 $who 11:53 wahts the error log saying now 11:54 https://termbin.com/f9hu 11:54 bottom 11:55 line 187 11:56 ok i have an idea but i need you to first commit everything you changed 11:56 ok 11:56 and push ofc 11:57 diff --git a/tnntbot.py b/tnntbot.py 11:57 index 8c24d1c..5ce999e 100755 11:57 --- a/tnntbot.py 11:57 +++ b/tnntbot.py 11:57 @@ -1168,7 +1168,7 @@ class DeathBotProtocol(irc.IRCClient): 11:57 for wipath in glob.iglob(widir + "*.whereis"): 11:57 if wipath.split("/")[-1].lower() == (msgwords[1] + ".whereis").lower(): 11:57 plr = wipath.split("/")[-1].split(".")[0] # Correct case 11:57 - wirec = parse_xlogfile_line(open(wipath, "r").read().strip(),":") 11:57 + wirec = parse_xlogfile_line(open(wipath, "r").read(),":") 11:57 ^ that's the only change 11:58 you still want me to push just that? 11:58 eh ok i'll make that edit 11:58 and then change some other shit a bit 12:01 try the new 12:02 ok 12:03 -!- mode/#tnnt [+o Croesus] by ChanServ 12:03 -!- mode/#tnnt [+o Croesus] by ChanServ 12:03 $who 12:03 $whereis k2 12:04 whats the errors sayin now 12:05 https://termbin.com/k0uf 12:05 very bottom 12:06 huuuuuuh 12:06 ok wait a sec 12:06 may not be a bad idea to see what all Tangles did in beholder bot - https://github.com/k21971/beholder/blob/master/beholder.py - i'm noticing some other changes for functions like !who 12:06 or !players (same thing) 12:08 ah ok hm 12:10 pull 12:10 and try agai 12:13 ok 12:15 -!- mode/#tnnt [+o Croesus] by ChanServ 12:15 $who 12:15 $whereis k2 12:15 $whereis aoei 12:16 just died, nothin 12:17 more errors? 12:17 nothing in the log 12:17 whut 12:17 nothing in the log 12:18 i at least had death reporting workign in my local copy 12:18 ognna try and set that up again 12:18 to double check that it does indeed work 12:19 https://termbin.com/6zwcz 12:19 ^ thats it 12:22 $who 12:22 $whereis aoei 12:24 fwiw the xlogfile is being written to, paths are correct 12:25 -!- CroesusTestAoei has joined #tnnt 12:25 $who 12:25 $whereis aoei 12:26 huh its trying to forward queries 12:26 thinks its a secondary 12:26 or wait idk 12:27 comment out MASTERS in your tnntbotconf.py file 12:27 [aoei-test] [D]: aoei (Wiz Elf Fem Cha), 132 points, 261 turns, killed by a hobbit 12:27 !! 12:27 woop 12:27 why does that work for me and not you 12:27 i literaly changed nothing 12:27 i know you said hte file paths are correct but double check that shit because clearly they are not 12:28 i've triple checked all of that. the paths have not changed from previous years 12:28 pm me the precise details of these file paths 12:28 because something aint right 12:31 -!- mode/#tnnt [+o Croesus] by ChanServ 12:35 -!- mode/#tnnt [+o Croesus] by ChanServ 12:41 $who 12:41 $whereis k2 13:05 -!- mode/#tnnt [+o Croesus] by ChanServ 13:06 $ping 13:06 K2: Pong! 13:06 K2: Pong! 13:06 $who 13:06 $whereis k2 13:09 -!- mode/#tnnt [+o Croesus] by ChanServ 13:29 -!- mode/#tnnt [+o Croesus] by ChanServ 13:29 $ping 13:29 K2: Pong! 13:29 K2: Pong! 13:33 -!- CroesusTestAoei has quit [Remote host closed the connection] 13:33 i gotta go to the stupid laundrette again 13:33 bbl 15:21 -!- Umbire has joined #tnnt 15:22 -!- Umbire is now known as Guest8758 15:22 -!- Guest8758 has quit [Killed (copper.libera.chat (Nickname regained by services))] 15:22 -!- Umbire has joined #tnnt 15:23 -!- joes has quit [Ping timeout: 260 seconds] 15:39 -!- mode/#tnnt [+o Croesus] by ChanServ 15:39 hah 15:39 so thats how croesus got all his money 15:40 $score 15:42 $tell aoei error in log when using $score command - https://termbin.com/d1ik - that section may need editing since you changed format for scoreboard.json 15:42 No worries, K2, I've got this! 15:51 -!- mode/#tnnt [+o Croesus] by ChanServ 15:51 $who 15:51 $whereis 15:51 $whereis k2 15:53 $tell aoei error in log when using $whereis command - https://termbin.com/6al1 15:53 aoei shall be duly informed at the first opportunity, K2. 15:57 that last bug exists in beholder bot too 15:58 -!- mode/#tnnt [+o Croesus] by ChanServ 15:59 $whereis 15:59 K2: $whereis - finds a player in the dungeon. 15:59 $whereis k2 15:59 hmm 16:00 no log errors, just doesnt want to spit out the info 16:01 fixed one very minor bug at least 16:08 -!- mode/#tnnt [+o Croesus] by ChanServ 16:08 $who 16:08 $whereis k2 16:09 -!- mode/#tnnt [+o Croesus] by ChanServ 16:09 $ping 16:09 K2: Pong! 16:09 $who 16:10 $whereis k2 16:10 seriously 16:10 bruh 16:10 aoei: Message from K2 at 2021-09-26 15:42 EDT: error in log when using $score command - https://termbin.com/d1ik - that section may need editing since you changed format for scoreboard.json 16:10 aoei: Message from K2 at 2021-09-26 15:53 EDT: error in log when using $whereis command - https://termbin.com/6al1 16:11 can disregard 2nd one 16:11 first one just remove the ["all"] from that line 16:11 literaly from the [ to the ] 16:11 and the "all" inbetween 16:11 ok 16:11 i g2g ont done with laundromating 16:12 sry 16:12 no worries 16:13 -!- mode/#tnnt [+o Croesus] by ChanServ 16:15 $score 16:15 K2: Can't find player K2 on the scoreboard. 16:15 yay 16:15 $commands 16:15 K2: available commands are help ping time tell source lastgame lastasc asc streak rcedit scores sb score clanscore clantag whereis players who commands 16:15 $clantag 16:15 K2: $clantag - assigns a shorthand tag to a clan for use with $clanscore 16:15 $score luxidream 16:15 K2: luxidream - Score: 1000 - Rank: 1 16:15 $score aoei 16:15 K2: aoei - Score: 100 - Rank: 2 16:16 ok can put that one to bed 16:16 :thumbs_up: 16:16 $who 16:16 $whereis aoei 16:16 gonna play out this valk a bit see if i can get livelog to display 16:16 $whereis Stella 16:16 rp 16:16 rip 16:17 I've pushed all of the little fixes to date 16:17 afaict suicide shouldn't be scumfiltered 16:17 at any turncount or score 16:17 but my death was not reported 16:17 still 16:17 and i gotta hurry back to the laundrette before they close 16:18 idk how it got this late but its 22:18 16:18 and the place closes at 23:00 16:19 go do your thing 16:24 gee, whats that k2 16:24 you giv eme permission to quit my job and start my meth career in earnest? 16:24 golly! i wont forget this 16:24 thank you 16:33 i didnt realize you were funny 16:43 no livelog output either 16:43 event wrote to the livelog file 16:44 no errors in the log 16:59 $tell aoei pm me a termbin of your tnnt botconf.py 16:59 I'm on it, K2. 17:06 back in the covid-19 pandemic, we dealt with things like this with zoom calls 17:24 K2: one sec 17:24 aoei: Message from K2 at 2021-09-26 16:59 EDT: pm me a termbin of your tnnt botconf.py 17:35 i dont want to see aoei's face... ugh 17:35 what i sent you the thing 17:36 yeah 17:36 not seeing anything out of place or way different from what's on server 17:36 :/ 17:36 wtf 17:43 -!- mode/#tnnt [+o Croesus] by ChanServ 17:43 $who 17:44 $whereis k2 17:44 $score k2 17:44 K2: Can't find player k2 on the scoreboard. 17:46 hmm i have an idea 17:47 nope, it can already see that... hrm 17:48 still going? :/ 17:51 arahael: apparentlly c': 17:52 i blame python. always was difficult to get it to deploy. incredible that ansible is written in python 17:54 said he didn't want to see aoei's face and aoei sent a :/ smh 17:54 -!- mode/#tnnt [+o Croesus] by ChanServ 17:55 yeah but before you 17:55 lmfao 17:55 C': 17:56 i wouldnt blame k2 for being irritated, though. this sort of thing is frustrating for a sysadmin, more than most devs realise. 17:57 this is getting stupid 17:58 aoei what version of python are you developing on? 18:00 arahael: frustrating how 18:00 and why for sysadmin moree than dev 18:00 K2: ok lol let scount to 3 18:00 and then type python -v 18:00 pr -V 18:00 or w/e gives the version 18:00 no asshole, i'm asking you what version YOU are on 18:01 yes?] 18:01 you ahvent given yours tho either 18:01 we both give 18:01 alright, fuck this 18:01 o count of three 18:01 ❯ python -V 18:01 Python 3.8.10 18:01 whats yours bitch 18:01 aoei: dev take this as a programming challenge, but sysadmins really *need* these things to basically work. k2 here does know some programming, but at the end of the day, and it has been a long day, he needs it to work. 18:02 arahael: lmfao judging by what ive seen, he doesn't even know half of 'some programming' 18:02 aoei: so i think k2 has been very very patient. and trust me, he does. 18:02 normally i wouldnt comment but 18:02 arahael: bitch ive be fucking patient 18:03 no longer require your help aoei 18:03 thanks 18:03 well thank the stars for that 18:03 cuz i was geting bored and thats the worst punishment you can visit on a dev 18:06 have fun getting the old Perl backend running too jackass c: 18:07 aoei: maybe we should all take a bit of a rest, remember this is a public channel. 18:08 arahael: you falsley assume i care 18:08 its their bind i dont mind 18:08 aoei: but i care! 18:08 not my problem, friend 18:08 another day. 18:09 yea i gotta hit the hay 18:09 night arahael <3 18:09 sleepwell 18:10 sleep well. 18:11 -!- mode/#tnnt [+o Croesus] by ChanServ