You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

c4Bot

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

0
b/Web publicado por u/c4ooo October 20, 2015, 02:19:46 AM
Hey guys! As some of you have probably noticed on RIC, i have been developing an IRC bot in java. Although it is not yet versatile enough to be hosted, and is not in any of the channels unless i am working on it, it does have two useful commands:

@sp <text to correct>
Which uses google to correct most spelling error in the input, and
@trans <Text to translate> [-Output language] [-Input language]
Which will translate the text from input to output language. It uses yandex as a translator, and the negative sign is required when specifying the language. The full name or the two letter iso abbreviation could be used. If no Input language is specified then it automatically detects the language, and if no output language is specified it translates to english. Note, it is impossible to specify an input but no output language.

As of right now, the bot works in omninet, although not in walrii net. :P
Last Edit: October 21, 2015, 01:20:12 AM by c4ooo
Inicia sesión o crea una cuenta para dejar un comentario
u/novenary October 21, 2015, 07:54:40 AM
Sounds fun. You can bring the bot in #cw-spam on Efnet (note that it's not really an official channel) to show it off/test it. :)
Last Edit: November 12, 2015, 10:24:21 PM by Streetwalrus
u/Dream of Omnimaga October 22, 2015, 01:21:02 AM
Those features seems interesting. First doesn't have much risk of flooding, but you might want to make sure that the bot won't get kicked for flood if overused (eg add a filter that makes it reply less than a certain amount of time per minute so the CW botnet won't autokick). I'm not too sure if we should have it in the main channel but I guess it depends of other staff as well.
u/novenary October 22, 2015, 04:08:51 PM
If we allow the bot into the channel it can possibly be whitelisted from flood protection.
u/c4ooo November 12, 2015, 09:25:27 PM
 :)

BTW, the bot worked fine when connected to #spam on Omninet and issued commands from efnet, OIRC, and Omninet. I dont know why it did not worked when connected to #codewalrus  <_<
u/alexgt November 12, 2015, 09:29:03 PM
Those commands would be nice :) Good luck
u/Dream of Omnimaga November 14, 2015, 10:01:21 AM
Quote from: c4ooo on November 12, 2015, 09:25:27 PM
:)

BTW, the bot worked fine when connected to #spam on Omninet and issued commands from efnet, OIRC, and Omninet. I dont know why it did not worked when connected to #codewalrus  <_<
Not sure, but don't put it in #codewalrus without staff permission, since it's against the rules. (unless you already got permission? In which case it's most likely EFnet being dumb)
u/novenary November 14, 2015, 10:07:17 AM
Permission or not, the bot should be able to join the channel. It's odd that you can't connect it to efnet, maybe try a different server ? A lot of efnet servers do not allow bots.
u/c4ooo November 14, 2015, 07:04:31 PM
Sorry for being confusing. That one time i connected the bot to #codewalrus i did it via Omninet. It did not work, while it works perfectly on other Omninet channels like #omnimaga itslef.  :P
u/Dream of Omnimaga November 15, 2015, 06:18:33 AM
Could it match one of our bans? Although I think only one user is banned, IIRC there are multiple hostmasks in the ban list.

You should implement error logging in your bot and tell what error you get when joining #codewalrus.
u/novenary November 15, 2015, 09:34:05 AM
I dunno what the ban list is on omninet, we don't even have ops there anymore. :P
u/Dream of Omnimaga November 19, 2015, 04:43:37 PM
It's possible that one or more Omni ops setup bans by accident during the Ephraim ban evasion (and maybe that ERRSYNTAX guy as well?). They also had issues with Wowaname IIRC. Typically, though, they g-line people, not ban them. This is why for example if Ephraim tried joining #codewalrus on Omninet he wouldn't be able to, because of the Omnimaga ban. He would need to use EFnet.

I am not sure why c4ooo bot in particular would be able to join #omnimaga when #codewalrus doesn't work, though. The only possibility is that it matches Pimath hostname, because that's the only ban we have there.
u/novenary November 19, 2015, 06:15:01 PM
As I said, it's unlikely and pimath is not banned on the omninet channel (that we should drop at some point).
u/Dream of Omnimaga November 19, 2015, 06:16:22 PM
Ah I thought he was banned since we didn't lose Omninet channel control until a month later. And yeah I agree. The only reason why we kept the Omninet channel is because Juju was unable to connect the Telegram bot to EFnet, IIRC.


Do you know why c4bot would not connect to 1 specific channel, though?
u/novenary November 19, 2015, 06:19:23 PM
Nope, no idea other than his bot itself being bugged. :P
Start a Discussion

b/Web

Website developement and scripting

68
Topics
Explore Board
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal