Git Product home page Git Product logo

bashcord-documentation's Introduction

logo

bashcord

Unofficial discord API wrapper written in Bash

Features:

  • Lightweight
  • Easy to use
  • Use with any linux package
  • Easy to install
  • 2500+ lines of bash, few lines of JS

Requirements

Installation

To install code, run this:

git clone https://github.com/Tirito6626/bashcord.git

Now, lets create main.sh file:

#!/usr/bin/bash
source /path/to/bashcord/src/bashcord
token="YOUR TOKEN HERE"
clientBuilder;
 addToken $token # adding token  
 addIntents <intents, e.g. 33280> # 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 embed
channel_message_send <put your channel id here> "$message_json" # sending our message object which is saved in $message_json
 }
onReady startup # letting bashcord now which function what function should be executed on startup
startClient # 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"

Also, if you want to disable autoupdate on startup, set this:

autoupdate=false

If you want to disable output from API calls, set this:

f=false

Also check bashcord discord server for future updates

bashcord-documentation's People

Contributors

tirito6626 avatar

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.