Join us on Discord!
You can help CodeWalrus stay online by donating here.

c4Bot

Started by c4ooo, October 20, 2015, 02:19:46 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

c4ooo

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

novenary

#1
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. :)

Dream of Omnimaga

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.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

novenary

If we allow the bot into the channel it can possibly be whitelisted from flood protection.

c4ooo

 :)

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  <_<

alexgt

Those commands would be nice :) Good luck
  • Calculators owned: Ti-84+, Ti-Nspire, Hp Prime, Broken HP Prime, HP 48SX

Dream of Omnimaga

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)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

novenary

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.

c4ooo

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

Dream of Omnimaga

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.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

novenary

I dunno what the ban list is on omninet, we don't even have ops there anymore. :P

Dream of Omnimaga

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.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

novenary

As I said, it's unlikely and pimath is not banned on the omninet channel (that we should drop at some point).

Dream of Omnimaga

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?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

novenary

Nope, no idea other than his bot itself being bugged. :P

Powered by EzPortal