Code Monkey home page Code Monkey logo

nicknamer's Introduction

NickNamer

A Discord bot designed to randomize nicknames within your server. It offers a fun and interactive way to mix things up and keep your server lively.

Overview

Setting up NickNamer is straightforward. You'll need to have Python installed on your server, along with the discord.py library. The bot uses a .env file to securely store the API_TOKEN required for Discord bot authentication.

Setup Instructions

  1. Ensure Python 3.8 or higher is installed.
  2. Install discord.py using pip: pip install discord.py.
  3. Clone this repository to your server.
  4. Create an env var and add your Discord bot token as API_TOKEN=your_token_here.
  5. Run the bot using python src/main.py.

Bot Commands

NickNamer implements several commands to manage nicknames within your server:

  • ?remember [word]: Adds a word to the pool of nickname parts.
  • ?forget [word]: Removes a word from the pool of nickname parts.
  • ?forgetall: Clears the pool of nickname parts.
  • ?names: Lists all words currently in the pool.
  • ?randomizeme [num_of_words]: Randomizes the nickname of the command issuer using the specified number of words from the pool.
  • ?randomize [user] [num_of_words]: Randomizes the nickname of the specified user.
  • ?randomizeall [num_of_words]: Randomizes the nicknames of all server members with the specified role.
  • ?rolename [role_name]: Sets the role name required to use the randomization commands.
  • ?flip [user]: Reverses the order of words in the user's nickname.

Requirements for Running Commands

  • The bot will only change the names of users with the specified role. Change the role with ?rolename.

Requirements

  • Python 3.8 or higher.
  • discord.py library.
  • A Discord bot token.

Remember to keep your API_TOKEN secure and never share it publicly.

nicknamer's People

Contributors

bagtoad avatar

Stargazers

 avatar  avatar  avatar

Watchers

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