UNPKG
@song940/serverchan
Version:
latest (0.0.0)
0.0.0
ServerChan API for Node.js
github.com/song940/node-serverchan
song940/node-serverchan
@song940/serverchan
/
example
/
index.js
10 lines
(8 loc)
•
226 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
ServerChan
=
require
(
'..'
);
const
chan =
new
ServerChan
({
sckey
:
'SCT82268Td2xus2Ms6YDvKbVIqaNNELzx'
}); (
async
() => {
const
res =
await
chan.
sendMessage
(
'node-serverchan'
,
'hello world'
)
console
.
log
(res); })();