EuIrcBot icon indicating copy to clipboard operation
EuIrcBot copied to clipboard

Add !topic command

Open LinuxMercedes opened this issue 10 years ago • 6 comments
trafficstars

Allow euircbot to prepend to the topic. Would obviously require -t on the channel or +h/+o on the bot.

LinuxMercedes avatar Apr 19 '15 18:04 LinuxMercedes

:shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit::shipit:

gmackie avatar Apr 19 '15 18:04 gmackie

My vote goes to +h/+o on the bot (rather than -t on the channel) and everyone having access to !topic :)

Can split topic chunks with |, remove chunks from the end when they'd otherwise truncate, and generally just keep the topic nice & clean

drusepth avatar May 15 '17 13:05 drusepth

@drusepth I don't think +h/+o vs -t makes a difference coding-wise; the bot just has to be able to /topic one way or another.

LinuxMercedes avatar May 15 '17 16:05 LinuxMercedes

  • store chunks somewhere upon removal from topic
  • if possible, store who wrote what chunks
  • allow number of chunks displayed in topic to be adjustable
  • prevent someone from spamming chunks
  • allow chunks to be edited
  • allow chunks to be removed

gmackie avatar May 25 '17 02:05 gmackie

@LinuxMercedes Oh, yeah, I was just opting for using the bot as the sole interface to changing the topic to keep the topic nice and clean :+1:

drusepth avatar May 25 '17 13:05 drusepth

One thing worth mentioning is that chanserv in the various services programs (e.g. anope and atheme) have topic commands. It could be worth checking if they have any interesting ideas there. For reference, atheme has topicappend and topicprepend (docs).

It's likely also fine to ignore them and do our own thing as well.

euank avatar Oct 03 '18 17:10 euank