Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 4.52 KB

README.md

File metadata and controls

54 lines (39 loc) · 4.52 KB

gauntletjs

a discord.js mock library for assisting in the development of Discord bots

gauntletjs-logo

To run the gauntlet means to take part in a form of corporal punishment in which the party judged guilty is forced to run between two rows of soldiers, who strike out and attack them with sticks or other weapons. Metaphorically, this expression is also used to convey a public trial that one must overcome. --Wikipedia

INTRODUCTION

gauntlet will serve as a testing grounds for Discord Bot development, hence the name. The intended purpose of this project is to create a library by which Discord bot developers can mock Discord API calls to test features.

This project was originally started by cherryblossom000--discord.js-mock--for the purpose of testing Discord bots during their development. The project has since been handed over; gauntlet is the effort to build on the original efforts and contribute to the JavaScript Discord development ecosystem.

WHAT'S CURRENTLY IN THE CODEBASE

This code is haphazardly organized (meaning it isn't organized at all) which allows for some liberties in how to structure the codebase. There's a lot of custom configurations across a number of files and folders that can probably (most likely) be cleared out.

For some context, a word from the original creator:

This was my attempt to create a mocking library for Discord.js. Abandoned for now due to stuff in real life and, to be honest, lack of motivation. (Context)

I’m publishing this code so that it may be useful for someone else. The code is pretty messy and I was in the process of refactoring everything, hence the main branch and the old branch with the old version.

  • I initially did a very rough version when I subclassed all the discord.js classes and overrode all the methods. This is can be found in oldSrc in the old branch.
  • Quickly realising the above was a bad idea, I was refactoring it to override the Client#api property instead. I never finished this though. This can be found in the old branch.
  • Then I decided to refactor the code again, which is what’s in the main branch.

Sorry for the disorganisation and not really following OOP like the rest of the discord.js community tends to do.

If you have any questions about the code or anything else really, feel free to open a discussion.

WHERE TO BEGIN

Indeed, where to begin?

First off, read the docs, as outlined below. Second, review the issues. Third, join the Discord.

  • If you have experience as a repository maintainer, your expertise will be helpful in managing issues and PR reviews
  • If you have experience in systems design, your expertise will be helpful in restructuring the codebase
  • If you have experience with code coverage, your expertise will be useful in reviewing current tests and designing new ones

TypeScript and JavaScript developers are all welcome to pop in and help as we progress through reorganization. If you're new to open source contribution, or development generally, feel free to pair up with someone or get a small team together to tackle issues.

Please read the contributor docs, CONTRIBUTING.md & WORKFLOW.md, and code of conduct before diving in.

If you have questions about how to get started, reach out to me on Discord via the server linked above, or on twitter.

The current state of this project leaves much work to be done to bring it to a point of ease of contribution, so if you're ready to get your hands dirty with some cleanup, pick up an issue and LFG🚀!