All Projects → cordejs → corde

cordejs / corde

Licence: MIT License
🤖 A simple e2e library for testing Discord Bots 🚀

Programming Languages

typescript
32286 projects
Markdown
49 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
shell
77523 projects
C#
18002 projects

Projects that are alternatives of or similar to corde

Discord-Bot-Choo-Choo
Coding Train Example Discord Bot
Stars: ✭ 35 (-41.67%)
Mutual labels:  discordjs, discord-bot, discordbot
Welcome-Bot
A cool multi-purpose discord bot that solves all your problems. I have features such as Moderation, ModLog, Welcome & Goodbye logs, Fun, Music
Stars: ✭ 73 (+21.67%)
Mutual labels:  discordjs, discord-bot, discordbot
discord-voice
⏲️ A complete framework to facilitate the tracking of user voice time using discord.js
Stars: ✭ 33 (-45%)
Mutual labels:  discordjs, discord-bot, discordbot
SparkV
🤖⚡ | The most POWERFUL multipurpose chat/meme bot that will boost the activity in your server.
Stars: ✭ 24 (-60%)
Mutual labels:  discordjs, discord-bot, discordbot
mass-dm-discord
A MassDM selfbot which is working in 2021. Only for educational purposes 🥱🚀
Stars: ✭ 87 (+45%)
Mutual labels:  discordjs, discord-bot, discordbot
partner-bot
Automates partnerships in the big community of discord.
Stars: ✭ 119 (+98.33%)
Mutual labels:  discordjs, discord-bot, discordbot
LenoxBot
🖥️ LenoxBot is a Discord bot that offers many cool new features to your Discord server!
Stars: ✭ 218 (+263.33%)
Mutual labels:  discordjs, discord-bot, discordbot
Discord-BOT-Dashboard
This version is outdated, please check out Discord BOT Dashboard v2
Stars: ✭ 32 (-46.67%)
Mutual labels:  discordjs, discord-bot, discordbot
Discord-Reposter
Bot for reposting Discord messages (work in progress)
Stars: ✭ 62 (+3.33%)
Mutual labels:  discordjs, discord-bot, discordbot
suggestions-bot
A Discord bot designed to build better communities by encouraging a positive and constructive relationship between community and staff.
Stars: ✭ 22 (-63.33%)
Mutual labels:  discordjs, discord-bot, discordbot
Discord-Bot-TypeScript-Template
Discord bot - A discord.js bot template written with TypeScript.
Stars: ✭ 86 (+43.33%)
Mutual labels:  discordjs, discord-bot, discordbot
sharedsharder
Shard your discord.js bot across devices!
Stars: ✭ 18 (-70%)
Mutual labels:  discordjs, discord-bot, discordbot
Discord-Tools
VSCode extension allowing the integration of a Discord chat, bot templates, snippets, themes and more!
Stars: ✭ 91 (+51.67%)
Mutual labels:  discordjs, discord-bot, discordbot
Pootis-Bot
Pootis-Bot, a multipurpose, modular, open-source Discord bot built using .NET & Discord.NET.
Stars: ✭ 18 (-70%)
Mutual labels:  discord-bot, discordbot
Kato-Bot
discord bot
Stars: ✭ 51 (-15%)
Mutual labels:  discordjs, discord-bot
Ellie
A bot for the Discord chat platform written in Rust with the Serenity library.
Stars: ✭ 14 (-76.67%)
Mutual labels:  discord-bot, discordbot
Komugari
A simple, multi-functional Discord bot written in Discord.js
Stars: ✭ 39 (-35%)
Mutual labels:  discord-bot, discordbot
ALi
ALi a powerful Discord bot that includes Utility, Fun, Music, Moderation, and much more! (Beta)
Stars: ✭ 97 (+61.67%)
Mutual labels:  discordjs, discord-bot
NSFW-Bot
NSFW Bot is an open-source discord bot that has nsfw commands with the nekobot.xyz api.
Stars: ✭ 43 (-28.33%)
Mutual labels:  discord-bot, discordbot
TundraBot
All-in-one Discord bot
Stars: ✭ 49 (-18.33%)
Mutual labels:  discordjs, discord-bot

😀 Table of Content

👀 About

Corde is a small testing library for Discord.js. As there is a tool to create bots for Discord, it's cool to also have a tool to test them. Corde objective is to be simple, fast, and readable to developers.

Documentation

The bellow documentation is a resume of what you can find in Corde's site

🚀 Getting started

Node.js 14.0 or newer is required

Starting to create tests with Corde is simple. First, install it locally with npm npm i -D corde or yarn yarn add -D corde.

After installed, add the file corde.config.json in the root of your application with the following structure:

{
   "cordeBotToken":  "<tokenForCordeBot>",
   "botTestId":  "<yourBotId>",
   "guildId":  "<guildId>",
   "channelId":  "<channelId>",
   "botPrefix":  "!",
   "testMatches":  ["./test/**"]
}

Test example:

const { group, test, command, beforeStart, afterAll } = require("corde");
const { client, loginBot } = require("..");

beforeStart(async () => {
  await loginBot();
});

group("main commands", () => {
  test("ping command must return... Ping?!!", () => {
    expect("ping").toReturn("Ping?");
  });
});

afterAll(() => {
  client.destroy();
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].