Installation
Requirements
Section titled “Requirements”Installation
Section titled “Installation”To install code, run this:
git clone https://github.com/Tirito6626/bashcord.git
Now, lets create main.sh
file:
#!/bin/bashsource /path/to/bashcord/src/bashcordclientBuilder; addToken "YOUR TOKEN HERE" # adding token addIntents "GuildMembers" "GuildMessages" "MessageContent" # adding required intents so our bot receives all important messages
presenceBuilder; addStatus <status, e.g. "online"> # let us know that bot is online
#lets create startup command! function startup { messageBuilder; # creating message object embedBuilder; # adding embed array addDescription "Im alive!" # adding description to embedchannel_message_send <put your channel id here> "$message_json" # sending our message object which is saved in $message_json } function pong { messageBuilder; addContent "pong" channel_message_send "$channel_id" "$message_json" }event on "ready" startup # letting bashcord now which function what function should be executed on startupstartClient # start client
Note: if you want to run bashcord on Pterodactyl or on any environment, that doesn’t have required tools, you should change these lines in /src/bashcord
jq_binary="/path/to/jq"nodejs_binary="/path/to/node"npm_binary="/path/to/npm"