Giter Site home page Giter Site logo

solehats / freecarts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fraserdale/freecarts

1.0 1.0 0.0 107 KB

Free cart management for discords where 'free carts' are available. Stops multiple people accessing a cart.

JavaScript 85.34% HTML 13.61% CSS 1.05%

freecarts's Introduction

freeCarts

Free cart management for discords where 'free carts' are available. Stops multiple people accessing a cart.

Instructions

  1. Install Node.js
  2. Navigate into the freeCarts directory
  3. In command prompt/terminal type npm i
  4. Fill in the config.json file. (more instructions below)
  5. In command prompt/terminal type npm start

Tips

Make the channel that the carts are output in a channel where users cannot type (no error handling)

Compatibility

  • Splashforce
  • yCopp account links
  • yCopp cookies
  • LatchKey
  • adisplash
  • NoMercy (need testing)
  • Gen5 (need testing)

demo

Creating Discord Applications

Step 1: Navigate to /developers/applications

Go to: discordapp.com/developers/applications/me or click here

Step 2: Create your Application

  • Click New App
  • Enter your Application's name under App Name

Redirect URI, Description, and App Icon can be ignored for now and editted later. Redirect URI and Description can be ignored entirely as it is for Discord OAuth App Icon will be the avatar for your bot, whilst App Name will be the original username for your bot.

Then hit the big purple Create App Button at the bottom.
This will build your application and bring you to its page.

Setting Up Bot Accounts

When on your application information page scroll to the section labeled: Bot

Creating the Bot

Press Create a Discord Bot button.
This will prompt you about the repercussions of creating a bot account, after reading this hit Yes, do it!

Getting and using your Token

You will see Token: click to reveal in your Bot Information Section, your Token is sensitive information and should NEVER be shared. If your token does get into somebody's hands who shouldn't have it click the: Regenerate new token button, this will invalidate all prior tokens.

Using your Token

Open config.json and replace insert botToken, replacing Bot login token with the token received above.

Adding Bots To Servers

Generating OAuth Link

Discord makes this much easier with the purple Generate OAuth2 URL button on the bottom of the Bot Information Section After visiting the link hit the copy button just below the scopes menu.

This will be the link you visit to add the bot to your Discord Server
Adding bot to A Discord Server requires that you have MANAGE_SERVER or ADMINISTRATOR permissions or hold owner in the guild

Discord Developer Mode

Discord Developer Mode allows you to right click and retrieve useful information about specific things.
This feature can be accessed via: User Settings > Appearance > ADVANCED > Developer Mode

This allows you to get:

  • Guild ids
  • Channel and Category ids

freecarts's People

Contributors

fraserdale avatar connorlurring avatar

Stargazers

Mike Sconzo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.