|
|
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.
♥ theli is awesome.
When we talked in summer it all sounded so complicated. This version is just so awesome and easier to contribute!
what exactly does this mod do? can you train against bots?
ftw!
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 functionto 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!
-----------------------------
This is really great, thanks for sharing! Now to pimp rawrbot... =D
Thanks for that bot!
Got it to work, I'm trying some stuff with it now.
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.
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) :
- !stats,!statsmm,!statspub
- !info - draw info from a player info can be written by a mod with command setinfo
- !rank - draw user rank on the mm,internal and public rank.
- !userson - draw the users online that are registered on the league.
- !games - draw the games names and info that are oficialy registered with the bot.
Acess lvl 2 registered and captain :
- !tempinvite "nick " - Temporary invite a new player to channel allowing him to stay for 1h or a game only. ( couching purposes)
- !tempinviteoff " nick "- remove and ban the temporary invited user.
Acess lvl 3 (moderator ) :
- !addban "nick " "info " - Add user to the banlist with default info :time and who banned + personal info.
- !silence - Silence user.
- !unsilence - unsilence user.
- !Regame "matchid or gamename "- Register game on the database in order to get the match recorded and ranked.
- !unban "nick" - unban a player based on nick and leave an !info on him with time unbanned and by who.
Acess lvl 4 (admin ) :
- !say - make the bot say somenthing in channel.
- !lvldefault " value " - default lvl required to join channel.
- !mmrdefault "value " - default mmr required to join channel.
- !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.
- !join - make the bot join a channel
- !exit - make the bot exit a channel
- !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.
Those are some nice features. HF with them and this is opensource, so you can contribute as much as you want.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
League ? as in Inhouse League type ? or you meant clan?Channel gamelist based on games hosted by players on the league and match id's if matchmaking using the /whois command.
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 outi 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.
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 functionto 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!
-----------------------------
Does honbot require a separate free account xor a subaccount and which?