Raised This Month: $95 Target: $400
 23% 

IRC bot for Steam (chanbot)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Statistical        Approver:   Geesu (62)
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 05-25-2006 , 06:14   IRC bot for Steam (chanbot)
Reply With Quote #1

ChanBot v0.2.0 - 08/22

This plugin requires the socket module to be enabled.

Also, note that you are required to modify the provided ircbot.ini file.

Functions:
This is a basic but functional plugin, that should be running for all mods.

Its sole function is to tell:
1) What game (mod) is the server running?
2) What map is currently playing?
3) How many players are currently online?

Commands:
In irc, when bot is connected - type:
!server - for list of server information

Features:
Automaticly joins #channel
Changes nick if selected nick is taken
Responds to command: !server
All variables stored in a ini file
New: framework for third party plugins

[img]http://img80.**************/img80/79/bot1tb.jpg[/img]

If you are interested in modifying this, you will find good information on the IRC protocol at:
http://www.irchelp.org/irchelp/rfc/rfc2812.txt

Cheers

Developers:
By request i have created a sort of a framework to this plugin, that works by using callfuncs.

Sample code
Code:
#include <amxmodx> #include "irc.inc" #define PLUGIN "chanbot_test" #define VERSION "1.0" #define AUTHOR "Author" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     init_irc(PLUGIN) } public irc_in(irc_message[]) {     if (equali(irc_message, "!mycommand"))     {         irc_outmessage("test message")     } }

You have to include the irc.inc file from your plugin, and call init_irc(plugin_name[]) from plugin_init.

You also have to have a public function "irc_in(irc_message[])"

irc_in will recive the commands from irc, such as "!mycommand" or "!someothercommand".

Using irc_outmessage you can make the irc bot send public channel messages.
Attached Files
File Type: sma Get Plugin or Get Source (amxxbot.sma - 3666 views - 9.6 KB)
File Type: sma Get Plugin or Get Source (framework_sample.sma - 2454 views - 335 Bytes)
File Type: inc irc.inc (1.1 KB, 1768 views)
File Type: ini ircbot.ini (226 Bytes, 1860 views)
__________________

Last edited by DarkSnow; 08-22-2006 at 16:41.
DarkSnow is offline
Send a message via MSN to DarkSnow
Zaser
Member
Join Date: Jan 2005
Old 05-25-2006 , 09:39  
Reply With Quote #2

theres alot of this scripts on irc forums but nice one
Zaser is offline
Geesu
AMX Mod X Plugin Approver
Join Date: Mar 2004
Location: Cincinnati, OH
Old 05-25-2006 , 12:57  
Reply With Quote #3

Nice work, please attach the sma only as well as the zip and I will approve...

Josh
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 05-25-2006 , 15:51  
Reply With Quote #4

Done, and thanks
__________________
DarkSnow is offline
Send a message via MSN to DarkSnow
Zenith77
Veteran Member
Join Date: Aug 2005
Old 05-25-2006 , 16:32  
Reply With Quote #5

Typo ;)

Code:
case 2: { server_print("[IRC] Culd not resolve hostname"); }

p.s. brackets aren't nesscary, since your only using one line...
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 05-25-2006 , 17:16  
Reply With Quote #6

Quote:
Originally Posted by Zenith77
Typo ;)

... brackets aren't nesscary...
Fixed

Edit:
Thanks for approving the plugin Geesu
__________________
DarkSnow is offline
Send a message via MSN to DarkSnow
b-boy-kesh
New Member
Join Date: Jul 2006
Old 07-23-2006 , 13:11   Re: IRC bot for Steam (chanbot)
Reply With Quote #7

Somebody can help me ...i need for us chann Cup Bot like a Xtreme-Jumps @ Quakanet.org ... please help us
Thanks!
b-boy-kesh is offline
Da_sk8rboy
Veteran Member
Join Date: Jul 2006
Old 07-25-2006 , 07:26   Re: IRC bot for Steam (chanbot)
Reply With Quote #8

Hmm.. the irc menu thing isnt even coming up for me..
__________________
i stop around here and there.
Da_sk8rboy is offline
b-boy-kesh
New Member
Join Date: Jul 2006
Old 07-25-2006 , 14:24   Re: IRC bot for Steam (chanbot)
Reply With Quote #9

we very need this Cup Bot :/ please ..
b-boy-kesh is offline
DarkSnow
Senior Member
Join Date: Oct 2005
Location: 127.0.0.1
Old 07-26-2006 , 13:57   Re: IRC bot for Steam (chanbot)
Reply With Quote #10

Quote:
Originally Posted by b-boy-kesh
we very need this Cup Bot :/ please ..
Cup Bot?
__________________
DarkSnow is offline
Send a message via MSN to DarkSnow
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:45.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode