This repository has been archived on 2024-05-06. You can view files and clone it, but cannot push or open issues/pull-requests.
cirrus/bots/javapool/chara.nim

19 lines
530 B
Nim

import std/[strutils, tables]
import ../../cirrus
from ../../modules/grammar import getGrammarNames
proc hdlCharaHelp*(st: ServerState, msg: Message): void =
var
names = getGrammarNames(st.codePrefix)
help = "Hi, I'm " & st.nick & ", a bot with random features. " &
"You can find my source code at https://git.tilde.town/mio/cirrus. " &
"I'll respond to these phrases: " & join(names, ", ")
message(st.sock, msg.replyTo, help)
when defined(nimHasUsed):
{.used.}
handlers["hdlCharaHelp"] = hdlCharaHelp