tscord - A Discord.JS wrapper programmed in TypeScript.
An attempt at making programming Discord bots easier, funner, and more accessible to all.
Work In Progress
tscord is still being converted over from my private bots, so there are still issues and missing features within the code.
Setup
Install tscord:
npm i tscord
Alternatively, you could clone this repository and require the local copy you create in your main file.
Once you've installed, you can now require the package:
const tscord = require("tscord");
const tscord = require("path_to_cloned_repository");
import * as tscord from "tscord";
import * as tscord from "path_to_cloned_repository";
Great! You've installed a copy of tscord.
Quick Start
To get started with tscord, you simply need to create an instance of the Client
object. You need to provide it with a set of options - you can find more details below.
import * as tscord from "tscord";
let bot = new tscord.Client({
name: "your_bot's_name";
discord: {
token: "<your bot token>";
}
});
To start the bot, simply run Client.start()
bot.start();
new tscord.Client(opts).start();
Cool - that should get the bot up and running. Want to know more? Check out the wiki.
Issues
Please, please, please report any issues you find on the Git repository. Any feedback is very much appreciated. If you'd like to contact me, I'm on Discord at ori#0001
. Here's the issues page.