GithubHelp home page GithubHelp logo

discord-bot-user-picker's Introduction

User Picker

logo

Is a Discord bot which helps you to answer a complicated questions like:

  • Who's failed the game?
  • Who is the most useless player?
  • Whose momma is fatter?

And so on.

In other words it randomly picks member(s) from your voice channel.

Bot commands

;help

Show list of available commands and brief description.

You can type ;help <command> for detailed description about <command>.

;pick

Randomly choose one member from your voice channel (including you) and print his or her name.

;pick n

n must be a number from 1 to your voice channel members count.

Randomly choose n members from your voice channel (including you) and print their names.

Installation

  • Go to Discord application page and press New Application button.
  • Enter the name of your application and press Create.
  • Change the application icon if you want.
  • Go to the Bot page and press button Add Bot.
  • Copy token from the bot page.
  • Add environment variable USERPICKERTOKEN and set your token as variable value. set USERPICKERTOKEN=<your token>
  • Execute bot.py (if you want logging redirect output to file) bot.py >bot.log 2>&1
  • Generate bot invitation link on the OAuth2 page of your application:
    • In the scopes section check bot and applications.commands options;
    • In the bot permissions section check View Channels and Send Messages options;
    • Copy link from the bottom of the scopes section and paste it to your browser.
  • In your discord text channel type ;help for list of commands.
  • You can also use /pick-user command.

You can change some bot constants before launch in bot_config.py:

  • BOT_NAME - name of the bot. Used in some messages.
  • BOT_PREFIX - prefix for all commands. Default is ;. Change if default prefix is in conflict with other bots on your Discord server.
  • BOT_ENV_TOKEN - environment variable with your application token. Default is USERPICKERTOKEN.
  • BOT_LANGUAGE - used localization.

Bot uses discord.py package and discord-py-slash-command extension.

discord-bot-user-picker's People

Contributors

kray74 avatar

Watchers

 avatar

discord-bot-user-picker's Issues

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.