import Client from "guilded.js";
// Or const { Client } = require("guilded.js");
const client = new Client();
client.on('ready', () => {
console.log(`Bot is successfully logged in`);
});
client.on("messageCreate", message => {
if(message.content === "pogger") {
return message.channel.send("poggers indeed");
}
})
client.login({
email: "email",
password: "password"
});
guildedjs
is an API wrapper for Guilded.gg, a discord alternative. This was created due to the lack of an api wrapper written in TS for the guilded api.
node-fetch
- make HTTP requestsws
- make WS connections@discordjs/collection
- Map extension utility
You are expected to have an updated version of node.js. Guildedjs is tested on node.js >12.0.0 and we make no guarantees that it will work on earlier versions
- Install through NPM
(recommended)
npm install @guildedjs/guilded.js
- Clone the repo and build
git clone https://github.com/guildedjs/guilded.js
cd guilded.js
npm i
npm run bootstrap
npm run build
Then proceed to move the related dirs to your node_modules
Documentation will be coming once the project is at a usable state.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Please ensure your commits pass the tests, lints, and builds. This means you should test it locally before pushing.
We make use of lerna to manage our monorepo. The main commands used are below
lerna add <module> [--scope=package-name]
- add npm module dependency to all/specific package(s)lerna create <package>
- create a new packagenpm run bootstrap
=lerna bootstrap
- recursively install dependencies in all packages and symlink local packageslerna run <npm-script>
- recursively execute command in all packages (must exist in each packages package.json)
- Finish Typings for the Guilded API/WS 🚧
- Rest Util ✅
- Main Package:
- Structures 🚧
- GET Request Coverage ❌
- POST Request Coverage ❌
- PATCH Request Coverage ❌
- DELETE Request Coverage ❌
- Caching System
- Built-In Caching System ✅
- Allow custom caches ❌