SUPPORT ACCOUNT CLANS
Welcome, Unregistered.
 

Click here to go to the first staff post in this thread. Thread: pyHoNBot

Page 1 of 4 1234 LastLast
Results 1 to 20 of 65
  1. #1
    Offline
    Account Icon
    Chat Symbol
    Join Date
    Jul 2009
    Location
    Kyiv, Ukraine
    Posts
    1,873

    pyHoNBot

    Since I was asked about my clan chatbot from time to time I rewrote it in a more cleaner fashion in pure python.
    It is heavily based on phenny ( https://github.com/sbp/phenny ) thus most plugins written for it should work with minor modification.

    https://github.com/theli-ua/pyHoNBot/

    There is one hon specific plugin implemented - announces inhouses in clan chat and lists games clanmates play together

    I am not providing any support, though I would gladly accept pull requests.

    quickstart for windows users:
    download and install python version 2.7 ( http://python.org/ )
    download latest code: https://github.com/theli-ua/pyHoNBot/zipball/master
    unpack honbot
    enter its dir
    if needed edit honbot.cmd (it assumes python is installed in C:\Python27)
    run honbot.cmd
    edit settings files ( on windows 7 default location is C:\Users\username\.honbot\default.py )
    you need to change login, password, owner

    run honbot.cmd
    thats it
    Last edited by theli; 01-21-2013 at 04:25 AM.

  2. #2
    Thanks Theli, I was looking for something just like this

  3. #3
    This is awesome, thanks a lot.

  4. #4
    ♥ theli is awesome.

    When we talked in summer it all sounded so complicated. This version is just so awesome and easier to contribute !

  5. #5
    Offline
    Account Icon
    Chat Symbol
    Join Date
    Aug 2011
    Location
    Germany (but British)
    Posts
    88
    what does this mod do?

  6. #6
    Please have my babies
    -Free mep -

    Quote Originally Posted by PzKw View Post
    2 camps on this issue: hard line nerf (sledgehammer the mechanic altogether) and middle ground nerf (make it less safe/efficient/easy). No one is arguing to leave couriers as they are. One side is making themselves look like absolute cuntrats with stronk argument by assertion, ad homineum and spiderman because they can't address any of the issues raised by the other side. That's pretty much where this thread is at.

  7. #7
    what exactly does this mod do? can you train against bots?
    ftw!

  8. #8
    Offline
    Account Icon
    Chat Symbol
    Join Date
    Jul 2009
    Location
    Kyiv, Ukraine
    Posts
    1,873
    Quote Originally Posted by Abyss69 View Post
    what exactly does this mod do? can you train against bots?
    No, this is a chat bot

    Forum Moderators are not S2 Games employees. My posts in no way represent the view of S2 Games or any of its staff.

    Please use the report post function to have me review a post that you believe is breaking the Forum Rules.
    Check the Sticky Threads for additional information on this sub-forum and the Announcement Threads for more information about Heroes of Newerth as a whole!

    -----------------------------


  9. #9
    This is really great, thanks for sharing! Now to pimp rawrbot... =D

  10. #10
    Thanks for that bot!
    Got it to work, I'm trying some stuff with it now.

  11. #11
    Offline
    Account Icon
    Chat Symbol
    Join Date
    May 2010
    Posts
    402
    wish there was a video explaining how to set this up. Trying to do for TR channel. Awesome work though

    e:


    Getting this error. Any idea what I'm doing wrong?

    picture is too small, basically it gets disconnected. and says "reconnecting in 20 seconds". I downloaded that Phython then downloaded the code, unpakced it and then clicked on honbot cmd. Did not figure out how to change admin info or didnt understand where and how to write its "dir" like you said

    If I try to click on honbot\default.py it automatically closes the window without me being able to see anything


    If there is a copy of that ICbot, that would be great. Do you provide it?
    Last edited by RoLanD; 06-23-2012 at 01:12 PM.

  12. #12
    Offline
    Game Master Account Icon
    Join Date
    Sep 2009
    Posts
    848
    Quote Originally Posted by RoLanD View Post
    wish there was a video explaining how to set this up. Trying to do for TR channel. Awesome work though

    e:


    Getting this error. Any idea what I'm doing wrong?

    picture is too small, basically it gets disconnected. and says "reconnecting in 20 seconds". I downloaded that Phython then downloaded the code, unpakced it and then clicked on honbot cmd. Did not figure out how to change admin info or didnt understand where and how to write its "dir" like you said

    If I try to click on honbot\default.py it automatically closes the window without me being able to see anything


    If there is a copy of that ICbot, that would be great. Do you provide it?
    Edit the default.py file as soon as you run the bot for the first time it should create the default conf file.
    ' - Inactive 04/13/2013.

  13. #13
    It works good, thank you.

  14. #14
    Offline
    Account Icon
    Chat Symbol
    Join Date
    May 2010
    Posts
    402
    Quote Originally Posted by Miss`Anna View Post
    Edit the default.py file as soon as you run the bot for the first time it should create the default conf file.
    I've Python27 on E instead of C, any idea how I can change its direction so I can actually run the honbot cmd? :P

  15. #15
    Offline
    Game Master Account Icon
    Join Date
    Sep 2009
    Posts
    848
    Quote Originally Posted by RoLanD View Post
    I've Python27 on E instead of C, any idea how I can change its direction so I can actually run the honbot cmd? :P
    Edit honbot.cmd and in the line c:\python27\python.exe honbot put e:\python27\python.exe honbot

    if theli allows me i would like to update this bot to work more properly as a channel managment. There are few things i have in mind and would like to do :

    • Channel user_list database with acess level variating from invited,member,captain,moderator and admin.
    • Channel gamelist based on games hosted by players on the league and match id's if matchmaking using the /whois command.
    • acess lvl on channel from 0 to 4 and organizing the commands as groups from :

    Acess lvl 0 = banned from the league / gets autobanned from the channel.

    Acess lvl 1 (registered) :

    1. !stats,!statsmm,!statspub
    2. !info - draw info from a player info can be written by a mod with command setinfo
    3. !rank - draw user rank on the mm,internal and public rank.
    4. !userson - draw the users online that are registered on the league.
    5. !games - draw the games names and info that are oficialy registered with the bot.


    Acess lvl 2 registered and captain :
    1. !tempinvite "nick " - Temporary invite a new player to channel allowing him to stay for 1h or a game only. ( couching purposes)
    2. !tempinviteoff " nick "- remove and ban the temporary invited user.

    Acess lvl 3 (moderator ) :
    1. !addban "nick " "info " - Add user to the banlist with default info :time and who banned + personal info.
    2. !silence - Silence user.
    3. !unsilence - unsilence user.
    4. !Regame "matchid or gamename "- Register game on the database in order to get the match recorded and ranked.
    5. !unban "nick" - unban a player based on nick and leave an !info on him with time unbanned and by who.


    Acess lvl 4 (admin ) :
    1. !say - make the bot say somenthing in channel.
    2. !lvldefault " value " - default lvl required to join channel.
    3. !mmrdefault "value " - default mmr required to join channel.
    4. !moderate " value x " " value y " - silence everybody for x minutes based on y rank ex: !moderate 5 2. this will silence everybody who's acess lvl is below 2.
    5. !join - make the bot join a channel
    6. !exit - make the bot exit a channel
    7. !reconnect - make the bot reconnect.


    I'm not very experienced in python i'm more in C but i'll try porting those base commands from C however only if theli allows. Have in mind that doing this alone would require a large amount of work and my time is very short so it could take a while ;p
    ' - Inactive 04/13/2013.

  16. #16
    if theli allows me i would like to update this bot to work more properly as a channel managment. There are few things i have in mind and would like to do
    Those are some nice features. HF with them and this is opensource, so you can contribute as much as you want.


    Channel gamelist based on games hosted by players on the league and match id's if matchmaking using the /whois command.
    League ? as in Inhouse League type ? or you meant clan?
    There is already an IH announcer that works for clan members, based on the notifications it receives (AFAIK), you can modify that.
    But if it's for a league like IHL, then bot going /whois all the time, while others do different things to it (.stats, mod options, etc) it will kinda stress it. You can't spam much with the commands due to in game chat spam control, too many messages/lines sent and it disconnects.

  17. #17
    Offline
    Game Master Account Icon
    Join Date
    Sep 2009
    Posts
    848
    Quote Originally Posted by inklin View Post
    Those are some nice features. HF with them and this is opensource, so you can contribute as much as you want.



    League ? as in Inhouse League type ? or you meant clan?
    There is already an IH announcer that works for clan members, based on the notifications it receives (AFAIK), you can modify that.
    But if it's for a league like IHL, then bot going /whois all the time, while others do different things to it (.stats, mod options, etc) it will kinda stress it. You can't spam much with the commands due to in game chat spam control, too many messages/lines sent and it disconnects.
    After running a few alterations and a few test i realised that spam control is a bit too high and i cant really do much chat commands however there's a way out i can set commands response as queue'd whisper and it will eventualy not get spammed but i rather start a new one in C.

    There are several way outs but most of them are not realiable. Either i spam chat server or i spam players both are not allowed so i honestly dont know what to do ;p have to think about somenthing and run few tests.
    ' - Inactive 04/13/2013.

  18. #18
    Offline
    Account Icon
    Chat Symbol
    Join Date
    Jul 2009
    Location
    Kyiv, Ukraine
    Posts
    1,873
    Quote Originally Posted by Miss`Anna View Post
    After running a few alterations and a few test i realised that spam control is a bit too high and i cant really do much chat commands however there's a way out i can set commands response as queue'd whisper and it will eventualy not get spammed but i rather start a new one in C.

    There are several way outs but most of them are not realiable. Either i spam chat server or i spam players both are not allowed so i honestly dont know what to do ;p have to think about somenthing and run few tests.
    Not really sure what you are talking about :-/ . never had any problems with spamming players/server O_O.
    also, there is no proper anti-spam plugin in this bot, i never needed it.

    Forum Moderators are not S2 Games employees. My posts in no way represent the view of S2 Games or any of its staff.

    Please use the report post function to have me review a post that you believe is breaking the Forum Rules.
    Check the Sticky Threads for additional information on this sub-forum and the Announcement Threads for more information about Heroes of Newerth as a whole!

    -----------------------------


  19. #19
    Offline
    Game Master Account Icon
    Join Date
    Sep 2009
    Posts
    848
    Quote Originally Posted by theli View Post
    Not really sure what you are talking about :-/ . never had any problems with spamming players/server O_O.
    also, there is no proper anti-spam plugin in this bot, i never needed it.
    I'm talking about hon spam control not the bot one :P and the spamming problem is related to the fact i left the bot on a channel with 250 people and one guy typed .stats in chat... Guess you know what happened next |:
    ' - Inactive 04/13/2013.

  20. #20
    Does honbot require a separate free account xor a subaccount and which?

Posting Permissions

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