Skip to content

A simple, open-source Discord activities bot, built with HTTP interactions.

License

Notifications You must be signed in to change notification settings

tyowk/NouActivities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bots

NouActivities

NouActivities is a simple, open-source Discord activities bot built using HTTP interactions.

Installation

Vercel Deploy:

Deploy with Vercel

Follow these steps to install and run the bot:

  1. Clone the repository:

    git clone https://github.com/tyowk/NouActivities.git
    cd NouActivities
  2. Install dependencies:

    npm install
  3. 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.
  4. Run the bot:

    npm start
  5. 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

    setup.png

Commands

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.

Endpoints

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.

Contributing

We welcome contributions to improve the bot! To contribute:

  1. Fork this repository.

  2. Create a new branch:

    git checkout -b feature-name
  3. Make your changes and commit them:

    git commit -m 'Add new feature'
  4. Push your changes to your forked repository:

    git push origin feature-name
  5. 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.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Acknowledgements

  • 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.

About

A simple, open-source Discord activities bot, built with HTTP interactions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published