NouActivities is a simple, open-source Discord activities bot built using HTTP interactions.
Vercel Deploy:
Follow these steps to install and run the bot:
-
Clone the repository:
git clone https://github.com/tyowk/NouActivities.git cd NouActivities
-
Install dependencies:
npm install
-
Create a
.env
file in the root of the project directory with the following contents:TOKEN="your-bot-token-here" REPORT="your-report-channel-id-here" KEY="your-bot-public-key-here" ID="your-bot-client-id" PORT="your-server-port-here" # optional VOTE="your-vote-channel-logs" AUTH="topgg-webhook-auth"
- Replace
your-bot-token-here
with your Discord bot token (you can get this from the Discord Developer Portal). - Replace
your-report-channel-id-here
with the channel ID where you want report logs to be sent. - Replace
your-bot-public-key-here
with your bot's public key (found in the bot's settings in the Discord Developer Portal). - Replace
your-bot-client-id
with your bot's client id (found in the bot's settings in the Discord Developer Portal). - Set
your-server-port-here
to the port number your bot will run on.
- Replace
-
Run the bot:
npm start
-
Configure your bot’s interaction endpoint:
In the Discord Developer Portal, go to your bot's application settings, and navigate to the Interactions Endpoint URL section. Set the Interaction URL to:
https://<domain.com>/interactions
Here are some of the available commands:
/activities
: Displays a list of available activities./help
: Shows a list of all commands and their usage./invite
: Provides an invite link to add the bot to your server./ping
: Checks if the bot is responsive.
Here are some of the available endpoints:
PUT
/register
: Register client slash commands (optional, because when the client receives a PING from discord, the slash command will be automatically registered).POST
/interactions
: Accept all POST requests from Discord interactions.POST
/webhook
: Accept all POST requests from Top.gg vote webhook.
We welcome contributions to improve the bot! To contribute:
-
Fork this repository.
-
Create a new branch:
git checkout -b feature-name
-
Make your changes and commit them:
git commit -m 'Add new feature'
-
Push your changes to your forked repository:
git push origin feature-name
-
Open a pull request to the main repository.
Please ensure that your code follows the existing coding style and passes any tests or linters in place.
This project is licensed under the MIT License. See the LICENSE file for more details.
- discord.js: The library used to interact with the Discord API.
- discord-interactions: A library that simplifies working with slash commands and Discord interactions.
- express: A fast and minimalist web framework for Node.js.