Results 21 to 40 of 66
Thread: MafiaBot Github
-
November 27th, 2017, 10:41 AM #21
- Join Date
- Jul 2017
- Location
- collapsing the matrix
- Posts
- 741
- Steam ID
- let's just take a walk then
Me too.
-
January 12th, 2018, 08:44 PM #22
Did any one give this thing a shot or was it too high level for you ppl to run a script? Lol
YOU SO
FUCKIN'
PRECIOUS
WHEN YOU
-
January 12th, 2018, 08:47 PM #23
-
January 12th, 2018, 09:30 PM #24
-
January 13th, 2018, 04:06 AM #25
God you lazy boy. I'll do it then.
It's only got like 15 methods at most lolYOU SO
FUCKIN'
PRECIOUS
WHEN YOU
-
April 3rd, 2018, 04:33 AM #26
I need to update the repo with some code changes.
Changes:
-Fixed an issue with the bot not being able to deal with multiple bold tags within the OP post to read the playerlist
-Fixed the initialization function to deal with cases where the thread has just opened i.e. less than 4 pages (No 'lastpage' element was being created within the thread which caused the bot to fail. The workaround was to start the bot once 4+ pages have been created, which was working fine because people were not getting lynched by page 3).YOU SO
FUCKIN'
PRECIOUS
WHEN YOU
-
April 3rd, 2018, 05:06 AM #27
On another note, I'm in the thought process of implementing a few features on the bot:
ISO command - Player types something like ISO ironstove and the bot collects every post made by the player in the game thread and creates a post placing each one in 'quotes'.
Example:
Requested ISO generated for Ironstove.
Last indexed post is #2 of Game Thread: Testing Mafia #1
I'm thinking there should be an 'ISO dump thread' in the mafia forum for the bot to throw all of this content in there and the bot can or can not reply back within the game thread to reference the creation of the ISO.
I've also discovered this bot is pretty difficult to run LOL. Not a straightforward double click a file and gracefully execute. I'm begun to restructure all of the code... It's still a mess...
Events:
I was thinking about adding notable events to the [b]votecount[b] command, but I'm not sure if this is would be interfering with the game.... Also rerunning the bot from a blank slate would recycle the events summary and make a giant ass post in a huge game... Unless I just referenced the last actions of a player taken. Hmm. Anyway, just shower thoughts.YOU SO
FUCKIN'
PRECIOUS
WHEN YOU
-
April 3rd, 2018, 05:53 AM #28
You could have the quotes in spoiler tags.
Spoiler“A man of genius makes no mistakes. His errors are volitional and are the portals of discovery.”
“Her antiquity in preceding and surviving succeeding tellurian generations: her nocturnal predominance: her satellitic dependence: her luminary reflection: her constancy under all her phases, rising and setting by her appointed times, waxing and waning: the forced invariability of her aspect"
-
April 3rd, 2018, 02:25 PM #29
-
April 5th, 2018, 04:30 AM #30
Here's my proposed restructuring of the code.
I'm not sure if this is the best way to do it, but my hope is that it will be a little more organized and readable after the changes.
Currently all of the functions are bundled and mixed around 1 file, so I'm hoping to categorize the functions into different classes and move the classes to a separate library that I'll import in the main function.
The main will do the usual looping and operate as usual.
PHP Code:Player OBJECT
NAME
VOTE
isHOST
Votes Class
initVotes
saveLynch
removeLynch
getLynch
wDriver Class
initBot
loginBot
scrapePosts
postToForum
getNextPage
findMafiaGame
Post Class
postVotes
postHammer
postISO
Record Class
initConfig
write2Config
unWrite2Config
save2ConfigFile
savePost
doesPostExist
clearLynches
Analyze Class
check4Bold
check4Command
Commands Class
isCommand
LYNCH
UNLYNCH
NIGHTBEGINS
DAYBEGINS
VOTECOUNT
WASKILLED
KILL
ADD
ISO
ENDDAY
YOU SO
FUCKIN'
PRECIOUS
WHEN YOU
-
April 5th, 2018, 04:37 AM #31
-
April 5th, 2018, 04:39 AM #32
-
April 5th, 2018, 04:44 AM #33
-
April 5th, 2018, 11:26 AM #34
-
April 5th, 2018, 01:15 PM #35
Ok, I see what you mean now when you say you had trouble following the code.
YOU SO
FUCKIN'
PRECIOUS
WHEN YOU
-
April 5th, 2018, 01:44 PM #36
I'm sorry I didn't help more when you first made this post, I can't help much now but it would be fun to get this project to the point where people with no tech chops can spin it up so that hosting becomes less of a responsibility for the host in question.
@ewiz fsm sounds like a really good fit for this kind of project right?
-
April 5th, 2018, 01:47 PM #37
If you want, it'd work. There's a shitload of different ways you could do this stuff
-
April 5th, 2018, 01:49 PM #38
-
April 5th, 2018, 01:52 PM #39
-
April 6th, 2018, 11:30 AM #40
Because python is a great language?
YOU SO
FUCKIN'
PRECIOUS
WHEN YOU