Page 1 of 4 123 ... LastLast
Results 1 to 20 of 66

Thread: MafiaBot Github

  1. #1
    Beyond Grantlike ironstove.'s Avatar
    Join Date
    Feb 2012
    Location
    Los Angeles
    Posts
    8,559
    Steam ID
    ironstove_

    MafiaBot Github

    The memes are real. I uploaded the source code on github and set my main as a repository. Feel free to fork from it and make any changes/push requests I'll accept with little to no vetting.

    https://github.com/ironstove/NADotA_MafiaBoT

    PS. the readme is a fucking mess because i formatted it in notepad, didn't intend for it to ever be uploaded to github.
    YOU SO
    FUCKIN'
    PRECIOUS
    WHEN YOU

  2. #2
    Beyond Grantlike ironstove.'s Avatar
    Join Date
    Feb 2012
    Location
    Los Angeles
    Posts
    8,559
    Steam ID
    ironstove_
    Use this thread to refer to anything related to the bot code or how to use it. If you have questions, ask them here and don't PM me so other ppl can see the response.
    YOU SO
    FUCKIN'
    PRECIOUS
    WHEN YOU

  3. #3
    I'll take a look at it sometime today hopefully. Does it work on spam threads? I wanna make sure I can get it going and all that jazz.

  4. #4
    Godlike Friend's Avatar
    Join Date
    Oct 2013
    Posts
    4,029
    Steam ID
    37138665
    will read through it after work. anything you're looking for help on? Might be a good excuse to do something in python again
    Quote Originally Posted by The Old Meme and the Sea View Post
    I will hunt you down

  5. #5
    I was gonna implement a few features suggested in the thread like the Lynch dictionary. Seems easy to write. Hell, maybe write some tests just for practice

  6. #6
    Beyond Grantlike ironstove.'s Avatar
    Join Date
    Feb 2012
    Location
    Los Angeles
    Posts
    8,559
    Steam ID
    ironstove_
    It works in spam thread you just need to change the sub forum it looks for in the code. You can spot it easily or I can tell you where it is when I get home.
    YOU SO
    FUCKIN'
    PRECIOUS
    WHEN YOU

  7. #7
    22 print("Logging le bot into the system...")

  8. #8
    all in one file

  9. #9
    Beyond Grantlike ironstove.'s Avatar
    Join Date
    Feb 2012
    Location
    Los Angeles
    Posts
    8,559
    Steam ID
    ironstove_
    Yea I didn't split it up. It seems more organized to have everything in one place.
    YOU SO
    FUCKIN'
    PRECIOUS
    WHEN YOU

  10. #10
    Doesn't seem like it's structured in an organized fashion. What's that method accomplish if the script doesn't start with var declaration and follow a layout the reflects the bot cycle. Seemed really disjointed to me

  11. #11
    Beyond Grantlike ironstove.'s Avatar
    Join Date
    Feb 2012
    Location
    Los Angeles
    Posts
    8,559
    Steam ID
    ironstove_
    yea, it's not organized at all, I wrote it on the fly with no idea in mind. I guess I owe it to others to spend the time to restructure everything and break things apart into objects/classes lmao.
    YOU SO
    FUCKIN'
    PRECIOUS
    WHEN YOU

  12. #12
    Beyond Grantlike ironstove.'s Avatar
    Join Date
    Feb 2012
    Location
    Los Angeles
    Posts
    8,559
    Steam ID
    ironstove_
    i was joking about it being organized.
    YOU SO
    FUCKIN'
    PRECIOUS
    WHEN YOU

  13. #13
    ah okay. I'll probably try to get it running then start refactoring

  14. #14
    Beyond Grantlike ironstove.'s Avatar
    Join Date
    Feb 2012
    Location
    Los Angeles
    Posts
    8,559
    Steam ID
    ironstove_
    damn dropping big buzz words. you're hired.
    YOU SO
    FUCKIN'
    PRECIOUS
    WHEN YOU

  15. #15
    Beyond Grantlike ironstove.'s Avatar
    Join Date
    Feb 2012
    Location
    Los Angeles
    Posts
    8,559
    Steam ID
    ironstove_
    So, I kind of took a lazy shortcut to building objects by using the config file. as you see in how it's defined, rather than creating player objects with player.vote attributes, I just stuffed it all into the config. It's sloppy but it works.

    I think the 'correct' way to do it so it's easier to read the code would be to get rid of the config file all together and make a player class. maybe a vote class too? I'm not sure if it deserves an entire class of its own or just keep it as an individual dictionary as I have right now.

    Anyway, I'm not a coder by any means so if you have ideas on how to restructure it I'd be interested to hear it since everything I've learned has been from the googs.
    YOU SO
    FUCKIN'
    PRECIOUS
    WHEN YOU

  16. #16
    Yeah implementing classes would be good. TBH I have no idea what's going on from a basic look. Don't see why you wouldn't want player objects. Game has players, players have votes, tht all makes sense. I'm doing some other stuff in tandem today but I will try and boot it up atleast.

  17. #17
    Beyond Grantlike ironstove.'s Avatar
    Join Date
    Feb 2012
    Location
    Los Angeles
    Posts
    8,559
    Steam ID
    ironstove_
    Great, welcome to the stovebotnet.
    YOU SO
    FUCKIN'
    PRECIOUS
    WHEN YOU

  18. #18
    Got some other projects to work on RN and we ain't playing RN anyway

  19. #19
    omae wa mou shindeiru Lucky Artist's Avatar
    Join Date
    Jul 2016
    Posts
    12,056
    Iím hosting after thanksgivig
    Quote Originally Posted by Haxity View Post
    i dont really know me either, does anyone ever truly know themselves?
    #philosophyPHD

  20. #20
    Holy Shit Amercchi's Avatar
    Join Date
    Oct 2016
    Posts
    5,280
    I'll join next game
    Quote Originally Posted by Numeta View Post
    You are absolutely lost.

Page 1 of 4 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •