Skip to content

A website that displays wishlist items, and a Discord bot that allows the user to interact with the wishlist through various commands such as adding, removing, and listing items.

License

Notifications You must be signed in to change notification settings

Arisamiga/wishlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wishlist

Issues

CodeFactor

Demo: https://wishlist.arisamiga.rocks/demo/

This project consists of a website and a Discord bot that work together to manage a wishlist.

Wishlist

Wishlist Dark Mode

Project Structure

  • /Website/: Contains the frontend code for displaying the wishlist.

    • index.html: The main HTML file for the website.
    • style/index.css: The CSS file for styling the website.
  • /Discord-Bot/: Contains the backend code for the Discord bot.

    • commands/utility: Contains the utility commands for the bot.
      • add.js: Command to add a new item to the wishlist.
      • remove.js: Command to remove an item from the wishlist.
      • items.js: Command to list all items in the wishlist.
      • online.js: Command to check if the website is reachable.
      • ping.js: Common command to reply with "Pong!".
    • events: Contains the event handlers for the bot.
      • interactionCreate.js: Handles interactions with the bot.
      • ready.js: Handles the bot's ready event.
    • index.js: The main entry point for the bot.
    • package.json: The package file for the bot's dependencies.

Website

The website displays the wishlist items in a way that is simple and quick. It supports dark mode and has a responsive design!

Features

  • Display wishlist items with their name, description (Able to include Links if you want to), and price.
  • Toggle dark mode.
  • Responsive design.

Discord Bot

The Discord bot allows users to manage the wishlist through various commands and all updates will be uploaded to the Github repository.

Commands

  • /add: Add a new item to the wishlist.
  • /remove: Remove an item from the wishlist.
  • /items: List all items in the wishlist.
  • /online: Check if the website is reachable.
  • /ping: Replies with "Pong!".

Event Handlers

  • interactionCreate.js: Handles interactions with the bot, such as commands and modals.
  • ready.js: Sets the bot's presence and logs when the bot is ready.

Installation

You have to install NodeJS and Git.
Create a folder.
Open Command Prompt.
Type in: cd The path to your new folder. (Example: C:\Users\User\Desktop\New folder)
Press enter.
After that type in: git clone https://github.com/Arisamiga/wishlist.git
Press enter.
When you see all Github files in your folder you installed the bot files succesfully.
Make sure to Navigate to the 'Discord-Bot' directory by typing: cd Discord-Bot

Navigate to the Discord-Bot directory and install the dependencies:

npm install

Create a .env file in the Discord-Bot directory with your Discord bot token, client ID, guild ID, owner ID, and website URL:

Get your discord token from https://discord.com/developers/applications

TOKEN=your-bot-token
CLIENT_ID=your-client-id
GUILD_ID=your-guild-id
OWNER_ID=your-owner-id
WEBSITE_URL=your-website-url
ENABLE_GIT_UPDATES=true (If you want to enable Git updates)
GIT_BRANCH=main (The branch you want to use)

Use either use npm start or node index.js to start the bot in your command prompt!

Open Website/index.html in your browser to view the wishlist.

Note: If you want you can host the website using Github Pages which you can enable in the repository settings.

Contributing

Feel free to open issues or submit pull requests if you have any suggestions, improvements or issues at https://github.com/Arisamiga/wishlist

About

A website that displays wishlist items, and a Discord bot that allows the user to interact with the wishlist through various commands such as adding, removing, and listing items.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published