Giter Site home page Giter Site logo

websocket-bot's Introduction

WebSocket-BOT

discord.jsをサポート役に回してWebSocketとAPIを直で叩いて動かすBOT

起動手順

クローンしてモジュールを一通り入れる

git clone https://github.com/KiRura/WebSocket-BOT.git
cd WebSocket-BOT
npm i

ルートディレクトリに.envファイルを作る

DISCORD_TOKEN=ここにトークンを入力

node.jsで起動させる vscodeのデバッグでやった方がログが見やすい

C:\Program Files\nodejs\node.exe .\main.js

2024-01-12 21:21:20.693 INFO            Loaded modules
2024-01-12 21:21:20.698 INFO            Loaded ready.js
2024-01-12 21:21:20.698 INFO            Fetching ws...
2024-01-12 21:21:21.000 INFO            Success
2024-01-12 21:21:21.001 INFO            Connecting ws...
(node:29088) [UNDICI-WS] Warning: WebSockets are experimental, expect them to change at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
{t: null, s: null, op: 10, d: {…}}
2024-01-12 21:21:21.315 INFO            Connected
2024-01-12 21:21:21.315 INFO            Successful login
{t: 'READY', s: 1, op: 0, d: {…}}
2024-01-12 21:21:21.608 INFO            Your Bot#1234 ALL READY

websocket-bot's People

Contributors

kirura avatar

Watchers

 avatar

websocket-bot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.