General purpose bot built for https://discord.gg/starrysky
This README is also available in: RU | EN
Clone this repository, copy .env.example
to .env
, fill in the empty configurations
and run the commands:
# npm
npm install
# yarn
yarn install
To run, use the following commands:
# npm
npm run start
# yarn
yarn start
To make your own messages, insert a document
following the schema located at src/schemas/Message.ts
A proper solution is being worked on here.
To set up a shop or room renting:
- Make a new message with a button.
- Set the button's
customId
value to eithershop
orroom-rent
- Send the message via
/sendmsg
command
To add new translations, preload your translation in /src/index.ts
:
...
i18next.use(I18NexFsBackend).init<FsBackendOptions>(
{
lng: process.env.LANGUAGE,
fallbackLng: "en",
preload: ["en", "ru"], // add the language code here
ns: ["translation"],
defaultNS: "translation",
backend: {
loadPath: "./locales/{{lng}}/{{ns}}.json",
},
},
(err, t) => {
if (err) return client.logger.error(err);
client.logger.info("i18next is ready...");
},
);
...
Then, either make a new folder in locales/
, or use i18n Ally extension
This project is licensed under GNU General Public License v3.0