Giter Club home page Giter Club logo

discord's Introduction

Discord

Discord Bots using Python

Features:

  • retrive discord messages
  • fetch all users from a server
  • fetch all roles from a server
  • fetch announcement channel messages

Binance.py

This code uses the requests library to make a GET request to the Binance API endpoint for the Solana token price. It then parses the response data and extracts the Solana token price.

Next, the code uses the Discord API to update the bot's status with the Solana token price. It does this by making a PATCH request to the Discord API endpoint for the bot's user settings, along with the necessary authentication headers and the new bot status data.

Fetch.py

This code uses Logging in with Discord special token - access token - to fetch important server infomations that the users has, such as list of servers, user roles in those servers and announcement channel messages in those servers.

Loggin in with Discord

Logging in with Discord allows users to easily access their Discord account from other websites and applications. When a user logs in with Discord, they are redirected to the Discord login page, where they can enter their login credentials (email address and password).

If the login is successful, the user is redirected back to the website or application that requested the login, and a special token is issued to the website or application. This token can then be used to access the user's Discord account and perform actions on behalf of the user.

Here's a high-level overview of the login process:

  1. The user clicks on the "Log in with Discord" button on the website or application.

  2. The website or application sends a request to the Discord API to initiate the login process.

  3. The Discord API redirects the user to the Discord login page, where they can enter their login credentials.

  4. If the login is successful, the Discord API redirects the user back to the website or application and issues a special token (called an access token) to the website or application.

  5. The website or application can use the access token to access the user's Discord account and perform actions on behalf of the user.

Servers in Discord

Servers under the Discord API are called guilds and follow this format:

  • id: This is the unique ID of the server.
  • name: This is the name of the server.
  • icon: This is the hash of the icon for the server.
  • owner: This is a boolean value indicating whether the authenticated user is the owner of the server.
  • permissions: This is an integer representing the permissions of the authenticated user in the server.
  • features: This is a list of features enabled for the server.
  • permissions_new: This is a string representing the permissions of the authenticated user in the server.

discord's People

Contributors

eramsodoiseuros avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

a94557

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.