GithubHelp home page GithubHelp logo

oneloutre / le-ptit-bordelais Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 2.75 MB

A simple bot made to help people from Bordeaux in promo 2028 at EFREI

License: GNU General Public License v2.0

Dockerfile 7.71% Python 92.29%

le-ptit-bordelais's Introduction

banner


GitHub license GitHub last commitlanguage GitHub repo size Made with love

BOT DISCORD Le P'tit Bordelais

๐Ÿ” Retrieving the LPB bot image for Docker

You can find the LPB bot image for Docker โžก๏ธ View on Docker Hub.

๐Ÿณ Docker Run Command

To run the bot with Docker, execute the following command:

docker run -e BOT_TOKEN=<YOUR_TOKEN_IN_PLAINTTEXT> -e DISCORD_CHANNEL_ID=<YOUR_ID_CHANNEL_IN_PLAINTTEXT> -d --name lpb-dockerized lzerteur/lpb:<TAG>

โš ๏ธ The DISCORD_CHANNEL_ID will be the channel used for some logs such as when the bot is restarted

๐Ÿณ Docker Compose Configuration

Alternatively, you can use Docker Compose. Add the following to your docker-compose.yml file:

version: '3.8'
services:
  bot:
    image: lzerteur/lpb:<TAG>
    container_name: lpb-dockerized
    environment:
      - BOT_TOKEN=<YOUR_TOKEN_IN_PLAINTTEXT>
      - DISCORD_CHANNEL_ID=<YOUR_ID_CHANNEL_IN_PLAINTTEXT>
    restart: unless-stopped

๐Ÿ’ฌ Command Guide

If you want to interact with the bot, here are the available commands:

=======

  • ๐ŸŒ‰ | /pont : Display upcoming bridge openings
  • ๐Ÿ‘ค | /fakeid : Generate a fake identity
  • ๐Ÿคฌ | /insulte : Generate a more or less polite insult
  • ๐Ÿ—ฃ๏ธ | /addinsulte [insulte] : Add an insult to the list
  • ๐Ÿš€ | /nasa : Send a random image from NASA
  • ๐ŸŒ | /earth : Send a random image of Earth
  • ๐Ÿ”ซ | /roulette : Play a game of Russian roulette... beware, if you lose, you get kicked!

For more information, type:

โ„น๏ธ | /aide : Display this menu

Manual installation (not recommended unless for developement) ๐Ÿ”ง :

Before every install step, download the git repo with

git clone https://github.com/Oneloutre/le-ptit-bordelais.git

Then, when it's done, create a file named .env

In this file, simply write BOT_TOKEN='YOUR BOT TOKEN' and of course, replacing "YOUR BOT TOKEN" with... Your token. It makes sense, right ? Don't forget to add DISCORD_CHANNEL_ID=YOUR DEV CHANNEL ID for the channel where some actions such as restarts will be logged.

This step is useful, in particular if you use docker since the prompt won't show.

Using Python ๐Ÿ directly :

Go in your folder using cd le-ptit-bordelais and then :

Execute pip install -r requirements.txt then python main.py

โš ๏ธ make sure that you're using Python 3.12 !

Using Docker ๐Ÿณ :

Execute docker build -t le-ptit-bordelais . then docker run -d le-ptit-bordelais

Enjoy interacting with LPB bot! ๐Ÿค–

Special thanks โค๏ธ :

Thanks to Lzerteur for the Dockerization of the bot and the help with the README.md file.

le-ptit-bordelais's People

Contributors

oneloutre avatar zerteur avatar mathis-desbonnet avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zerteur

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.