Anope IRC Services
Anope Development => Modules => Topic started by: steven_elvisda on April 07, 2006, 07:25:40 AM
-
hello everyone can you help me to write sample code module for fatasy command something like !kiss Rebeca and bot will say
[22:56] * irobot Steven kiss Rebeca with a sweet lips.
Best Regard,
Thanks.
-
Take a look at http://wiki.anope.org/index.php/Modules:Tutorials:Basics (http://wiki.anope.org/index.php/Modules:Tutorials:Basics)
I myself use an eggdrop for fantasy...
-
eggdrop sometime slow. i need use in botservices please help me ...
-
Also take a look at http://wiki.anope.org/index.php/Modules:QuickList:InternalEvents and http://wiki.anope.org/index.php/Modules:Misc:InternalEventList#EVENT_BOT_FANTASY if you're going to make your own module
-
Well i got bored and did a quick job on it
http://www.area51designz.com/c/anope/bs_fantasy_mini.c
!kiss (nick)
Bot (nick who did !kiss) kisses (target)
if there is any problems let me know. probably will be but it works
[Edited on 12-4-2006 by Tom65789]
[Edited on 16-5-2006 by Tom65789]
-
Hello Tom65789 you module is good, but after i load module command !kiss (nick) does not work even i /bs set #channel fantasy on already but still not work. Now can i request you more.
1. please check that logic error for me
2. If i want to add some more command like !hug nick, !love nick, ... can i bro ?
Best Regard,
Thanks Hero Tom65789 I hope bro can spend your gold time to correct for me. I wish bro good health and good every think that you wish...
-
make sure you have access to the fantasy commands in that channel... will only work if you do
ya can always link it to EVENT_BOT_FANTASY_NO_ACCESS though .. will work in both cases then
-
Originally posted by steven_elvisda
Hello Tom65789 you module is good, but after i load module command !kiss (nick) does not work even i /bs set #channel fantasy on already but still not work. Now can i request you more.
1. please check that logic error for me
2. If i want to add some more command like !hug nick, !love nick, ... can i bro ?
Best Regard,
Thanks Hero Tom65789 I hope bro can spend your gold time to correct for me. I wish bro good health and good every think that you wish...
well it worked when i tested it. probably the reason Viper said so i'll edit it a bit, and sure you can add your own. :)
edit. i have updated it.
download it from thr same place http://www.area51designz.com/c/anope/bs_fantasy_kiss.c
[Edited on 14-4-2006 by Tom65789]
-
one more question Ton65789. Can you write code to store command !kiss, !hug, ... in one database file (no mysql datase) and use that command ask ur code above?
Best Regard,
and thanks before hand to bro Tom65789
-
what? im not sure what your asking there but i can add the hug command
-
i think he wants a module that allows him to add commands and then stores those with their actions in a database
-
1. I have one datase anope file action.db this file store command !kiss , !hug, !love ... in file action.db
2. write code to use those command in file action.db ask above.
are you understand yet bro tom65789?
-
so you mean a command to add a !trigger and it stores it in a database and you can put what it says?
-
yeah command !tiggrer store in database and we can use that command i mean all type of you (both user have access and user don have access in channel.)
Tom can you do this for me this is the last type.
-
hello, Tom65789, please take a look at this thread http://forum.anope.org/viewthread.php?tid=120#pid711
i think it is similar to .. what seteven_elvisda is talking about .. and by the way.. i cant' fixed the module on the links i've given above :o
-
yer the link changed so take a look here if you want but im kinda busy at the moment so it might be a while before i get chance to look at it
http://www.area51designz.com/c/anope/bs_fantasy_mini.c
[Edited on 17-5-2006 by Tom65789]
-
bro tTom65789 English deid link.
-
meh i'll have to fix it later