FANDOM


Forums: Yew Grove > A Bot for Chat
Replacement filing cabinet
This page or section is an archive.
Please do not edit the contents of this page.
This thread was archived on 31 January 2012 by TyA.


Well, while in Chat, I noticed that Atheist seems to copy all the info from chat into his own documentation. Wondering why, Hair and I thought, why don't we get a bot for that?

It can be useful for gathering information for users that could be up to something EVIL.

Or it could be used effectively as proof of people doing good work in Chat to get Chat Mod rights.

Or, which I'm not sure if a Bot could do this, it can catch people spamming and kick them, and then immediately add it to RS:CHAT/B

Haidro (talk) 04:41, January 14, 2012 (UTC)

EDIT: Forget about the "Kicking people"Haidro (talk) 06:00, January 14, 2012 (UTC)

Discussion

Question(s) -

  • What will this bot do, sorry? You're post wasn't very clear on the matter.
  • Do you know for a fact that that is possible?
  • Who will run the bot?
  1. REDIRECT User:-Matt/sig 04:48, January 14, 2012 (UTC)
  • A) Monitor Chat
  • B) Nope, but I'm pretty sure it is
  • C) No idea as of yet.

Haidro (talk) 04:54, January 14, 2012 (UTC)

(edit conflict x2) Monitor chat? Can you be any more specifc? >_>
  1. REDIRECT User:-Matt/sig 04:59, January 14, 2012 (UTC)
It'd save logs of the chat, that's all. User:Urbancowgurl777/Signature 05:04, January 14, 2012 (UTC)

Comment - A bot to log everything in the Chat might be useful. Having a bot to kick people is unnecessary and likely impossible in the chat. We don't even have something like that in IRC. 222 talk 04:57, January 14, 2012 (UTC)

Strong oppose anything that remotely resembles Fishbot/Evilbot - But a bot that logs the chat would be cool. (: As long as you can secure a solid connection, I don't see how it'd be an issue. User:Urbancowgurl777/Signature 04:59, January 14, 2012 (UTC)

but evilbot is teh best bot evar@@ bad_fetustalk 09:33, January 14, 2012 (UTC)

Comment - A bot that simply logged the Chat would be fine. Maybe we could make a RuneScape:Chat/Logs or something.

  1. REDIRECT User:-Matt/sig 06:57, January 14, 2012 (UTC)

Support Logbot - I wouldn't have minded another Evilbot, but ok. Ronan Talk 08:24, January 14, 2012 (UTC)

Support logs - Having logs can't be a bad thing, and if we got it to post the last 10 minutes of logs after someone is kicked, onto a page, so it can be linked to on RS:CHAT/B, it might also be good. Hunter cape (t) Sentra246Blue hallowe'en mask 09:14, January 14, 2012 (UTC)

Support - Such a bot would be the best way to keep record of rule-breakers who strike when no chat mods are in. And Matt, I asked Cook Me Plox and he said it would be possible as long as we have someone who is connected 24/7. I have a very good idea of who should run this bot, but I don't think I should name names before I asked them... --Void Knight 11:49, January 14, 2012 (UTC)

Support - As it was my idea, I think I will support it. Hair 13:17, January 14, 2012 (UTC)

Read the second sentence ya nub Haidro (talk) 21:42, January 14, 2012 (UTC)

Support - Could be quite userful. 2-3 cake Feeshee yay!Corrupted Ascension signet III 13:29, January 14, 2012 (UTC)

Question - who would / could make this bot? JOEYTJE50TALKpull my finger 13:38, January 14, 2012 (UTC)

Support - So long as it only keeps logs of the chat. If you want it to have kickban powers then put it through a RfCM Template:Signatures/Ciphrius Kane 13:43, January 14, 2012 (UTC)

An RfCM isn't necessary for someone that doesn't exist. The nominator has stated that he does not care for the bot to have the ability to kickban, but if that were to change this thread would serve as a sufficient substitute for an RfCM, as people would be supporting or opposing its creation. As for the technicalities, a kickbanning bot would be very difficult to programme, if we wanted it to work right. It's a simpler process to create one in an IRC. Btw, for anyone interested in the logistics and workings of an S:C bot, check out Community Central's chat. Ronan Talk 22:59, January 14, 2012 (UTC)
Community Central hasn't used a chat bot in a while, therefore it would be kinda pointless to check it out there. User:TyA/sig 00:34, January 15, 2012 (UTC)
I shall point at the only other example I know of: (effective) RfBot, RfA. Weird gloop @Gaz#7521 03:15, January 16, 2012 (UTC)

Oppose on technical grounds - A [[Special:Chat]] bot that would need to be constantly there in order to log the chat to be effective, therefore a bot that would need a very stable connection and even then may still drop off and join-quit spam and couldn't be kickbanned by a chat mod to avoid losing logs? I'm not in [[Special:Chat]], but even I have heard of the join-quit spam in there.

(Plus, what's the protocol for [[Special:Chat]] anyway?)  a proofreader ▸  11:13, January 15, 2012 (UTC)
wikipedia:WebSocket
  1. REDIRECT User:Walrus068/Signature 01:04, January 28, 2012 (UTC)

Support, provided it's technically possible - All this really requires is a stable connection, which would probably be best provided by someone who is usually in the chat.
I would suggest Coolnesse on the grounds of constantly being there, I think he leaves it logged in whilst he's asleep, although I would have some concerns about him being the operator of said bot due to a scenario not so long ago involving the language rule.--

  1. REDIRECT User:Cqm/Signature 00:35, January 22, 2012 (UTC)


Neither Is it really necessary? Quite a few people in the IRC keep logs, and I'm sure most of them would be happy to offer them up if needed. Mind you, the time differences would be a problem.Quest point cape Yt'Haar-Mej-Joelthefrog1 Prayer cape (t) 11:41, January 23, 2012 (UTC)

Considering this doesn't have anything to do with IRC... User:Urbancowgurl777/Signature 12:27, January 23, 2012 (UTC)

Support and suggestion - I'd be fine with it, per supporters. What I'd also like to see is the bot (if it is created) put a link to banned users talk pages and here when users are kickbanned. Smithing (talk | contribs) 19:16, January 25, 2012 (UTC)

Support - Logs could be pretty useful in some situations provided the bot works right. --Touhou FTW Zaros symbol 05:34, January 27, 2012 (UTC)

Closed - Consensus exists for a bot to log the chat. However, as nothing but the bare concept has been proposed, and it does not appear that any progress has been made on the bot, nothing more can really develop of this thread. If a specific bot ends up being produced in the future, it will have to get more consensus before it is able to operate on the wiki.

  1. REDIRECT User:-Matt/sig 03:47, January 28, 2012 (UTC)

Reopened - Because I decided to write a script after all, I am proposing the bot to run. Please do not vote above, as that part is closed already. JOEYTJE50TALKpull my finger 20:50, January 28, 2012 (UTC)

Running the bot

I've created a script that can log the chat, User:Joeytje50/ChatLogger.js, which will do the following:

  • Every message you can see on your screen will be posted on a page called RuneScape:Chat/Logs/<date> with the date being the format dd Month yyyy (example: RuneScape:Chat/Logs/14 February 2020).
  • Emoticons are changed to the text that created the emoticon. For example, :) turns into Emoticon_happy.png in the chat, and in the log it is displayed as :) again. Also emoticons that have different keywords will result in the keyword entered by the user.
  • Links to this wiki are turned in the raw code for a link, even if the link is created by an url by the person saying it. For example, in the log it would say [[Cake]], even if the user saying it entered http://runescape.wikia.com/wiki/Cake in the chat originally.
  • The rest of the text remains the same as it is seen in the chat window.
  • The log is within a <pre> tag with class="ChatLog", so any CSS changes can be made with .ChatLog {styles;} in stylesheets.
  • The log will use a format of [hh:mm] <Username> Message.
  • The log is resubmitted every 5 minutes. Everything that can be seen at that moment on the screen will be the new content of the log. In cases of failing connection, where the page has to be renewed, the existing log will be replaced with what the bot sees on its screen at that moment.
  • The timestamps of the chat are converted to UTC timestamps automatically, regardless of the timezone the bot is run in
  • The window is cleared at every midnight UTC, so that the log of the next day doesn't include chat from the previous day. Just before clearing the screen, the chat is submitted to the log of that day to preserve any conversation that might be lost.
  • The logs are added to the category Category:Wiki Chat logs, sorted by YYYY MM DD. This category hasn't been created yet, so should be created when this proposal passes.
  • Note: the log will not show kickbans, joins and quits. This should not be a big problem, as joins and quits are not important for historical purposes, other than join/quitspam, which will always result in a warning, and the warning is logged, as it is just a conversation. The same counts for kickbans, for which we also have RS:CHAT/B and the archives.

The bot doesn't do anything else in the chat and will not do anything like replying or kickbanning. On the index page, RuneScape:Chat/Logs we could put {{Special:PrefixIndex/RuneScape:Chat/Logs/}} which will automatically update keeping a list of pages that are subpages of the page. It will look like this. We could also use the chat log category, Category:Wiki Chat logs. Then we can use DPL, like Forum:Yew Grove uses, to generate a list. With the first method, it is not possible to show only the date, and the RuneScape:Chat/Logs/ prefix will always be there. With the second method, it will take longer to load the page, especially when there are more logs. We could also start with the second method, and when it takes really long to load, switch to the first method.

TyA said he can host the bot using User:ZammyBot User:RSChatBot. This will prevent the edits from filling the recent changes, and as the bot will be hosted on a stable server, it will be less likely to disconnect.

Discussion

Support Zammy running the bot, the interval being 5 minutes, and that the rest of the script is good this way. I also support using the second DPL method for the index page, and when it starts loading slowly, switch to the first method. JOEYTJE50TALKpull my finger 20:50, January 28, 2012 (UTC)

Support idea - Though I do think we should have another account, like User:ChatBot. This will differentiate the Chatbot from Ty's personal AWB account and separate the two groups of edits. Furthermore, I don't think the ChatBot should be a chat moderator (ZammyBot gets the star from the sysop group) if it's not going to do anything chatmod-related. --LiquidTalk 21:07, January 28, 2012 (UTC)

ZammyBot isn't current an admin. User:TyA/sig 21:17, January 28, 2012 (UTC)
Oh. Well, the point about separating chatbot from your AWB edits still stands. --LiquidTalk 21:38, January 28, 2012 (UTC)

Support idea w/ separate bot account - All of the above looks sound, and well done to Joey for making the script. Ronan Talk 21:10, January 28, 2012 (UTC)

Support - I made User:RSChatBot because User:ChatBot was taken. User:TyA/sig 21:17, January 28, 2012 (UTC)

I made User:ChatBot -- Although I forgot the password. I'll try remember it? Haidro (talk) 10:01, January 29, 2012 (UTC)
Wait it wasn't me, but I do remember making one... Oh whatever... Haidro (talk) 10:02, January 29, 2012 (UTC)

Support - Per everyone. 2-3 cake Feeshee yay!Corrupted Ascension signet III 21:18, January 28, 2012 (UTC)

Support - This will help for the likes of RfCMs and RfAs for generating evidence. And since Zam's the one hosting it it won't start with the random j/q. It'll also help produce evidence to support the bans enforced Template:Signatures/Ciphrius Kane 21:27, January 28, 2012 (UTC)

Support - all of this, including Ty being the one to run it. Would be good to have evidence for bans. Small recharge gem AnselaJonla Slayer-icon 21:45, January 28, 2012 (UTC)

Support - Per all.

  1. REDIRECT User:-Matt/sig 23:06, January 28, 2012 (UTC)

Support - seeing as I supported this before.

  1. REDIRECT User:Cqm/Signature 03:39, January 29, 2012 (UTC)

Support - Looks good. Smithing (talk | contribs) 07:14, January 29, 2012 (UTC)

Support - 222 talk 09:53, January 29, 2012 (UTC)

Comment - Does this forum have to be open for the full 7 days? The proposal basically passed in the part above already, and it has unanimous support so far. (The above secion also didn't get any opposes other than one for a function it doesn't have and one for being impossible which it isn't) JOEYTJE50TALKpull my finger 12:40, January 29, 2012 (UTC)

There's really no urgency. 222 talk 00:42, January 30, 2012 (UTC)

My Full Support - Don't see why we shouldn't. Adam SavageSpeech cursor 18:07, January 29, 2012 (UTC)

Closed - We shall use User:RSChatBot to log [[Special:Chat]] with the settings agreed upon here. User:TyA/sig 17:00, January 31, 2012 (UTC)

Community content is available under CC-BY-SA unless otherwise noted.