Coder Social home page Coder Social logo

ifsvivek / localbot Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 2 KB

Local Bot is a fun and interactive bot built using Python's Discord library. It provides various commands and features to enhance the user experience within Discord servers.

Python 100.00%
discord discord-bot disocrd-py

localbot's Introduction

Local Bot

Description

This Discord bot is a fun and interactive bot that provides various commands to users within a Discord server. It includes features such as ping testing, cat images, dice rolling, number guessing game, coin flipping, and more.

Installation

  1. Clone or download the repository to your local machine.
  2. Install the required dependencies by running pip install -r requirements.txt.
  3. Create a .env file in the root directory of the project.
  4. Inside the .env file, add your Discord bot token in the following format:
    TOKEN=your_discord_bot_token_here
    
  5. Ensure your bot has the necessary permissions in your Discord server.
  6. Run the bot script by executing python bot.py in your terminal.

Usage

Once the bot is running and connected to your Discord server, users can interact with it using various commands prefixed with $.

Available Commands

  • $ping [target]: Tests the latency to a specified target (default is 1.1.1.1).
  • $cat: Sends a random cat image.
  • $echo [message]: Repeats the provided message.
  • $gtn: Starts a number guessing game.
  • $hello: Greets the user.
  • $dice [sides]: Rolls a dice with the specified number of sides (default is 6).
  • $flip: Flips a coin.
  • $shalli: Provides a yes/no response randomly.

Contributing

Contributions to the project are welcome. If you have any suggestions, bug fixes, or additional features you'd like to implement, feel free to fork the repository, make your changes, and submit a pull request.

localbot's People

Contributors

ifsvivek avatar

Stargazers

 avatar  avatar

Watchers

 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.