注意:ライブラリなどを使用すれば更にかんたんに安定に取得できる可能性がありますが、
ここではライブラリを使わずにAPIKEYだけで使えるAPIのみで取得することを優先しています
この工程は省略できますが、毎回IDを教えて上げる必要があります。
const app = require('http').createServer(handler) | |
const io = require('socket.io')(app) | |
const path = require('path') | |
const fs = require('fs') | |
const mime = require('mime-types') | |
io.sockets.on('connection', socket => { | |
socket.on('socket', data => { | |
console.log(data) | |
io.sockets.emit('socket',data) |
Complete command list of NotSoBot <170903342199865344>: | |
Owner: NotSoSuper <130070621034905600> | |
Prefix: . | |
* = Not Required | |
^ = Bot Owner Only | |
^^ = Server Admin Only | |
"/'s" in commands show aliases for the command (Ex: ".reverse/r <text>" Command can be run with .reverse or .r) | |
<max_messages> = The number of messages to search through | |
<image> = The image URL, @discord_user, the users name, discord/custom emoji, or, nothing inputted which will search through 25 messages for embeds or attachments | |
<image-face> = Image requires a HUMAN FACE to be included |