UNPKG
modernirc
Version:
latest (1.5.0)
1.5.0
1.4.0
1.3.2
1.3.1
1.3.0
1.2.0
1.1.0
1.0.6
1.0.5
1.0.3
1.0.2
1.0.1
1.0.0
IRC library for creating modern IRC bots
modernirc
/
example
/
modules
/
world
/
index.js
11 lines
(10 loc)
•
267 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
export
async
function
init
(
bot, options
) {
return
{
onBubbleEvent
(
source, ...args
) {
if
(source ===
'hello'
) {
const
report = args[
0
] bot.
notice
(report.
nickname
,
`Hey, you, I know you just said:
${report.message}
...`
) } }, } }