Giter Site home page Giter Site logo

mounit's People

Contributors

theycallmelinux avatar

Watchers

 avatar

mounit's Issues

Load configs from a file or env var

Nice bot :) Here's some suggestions related to configs

Mounit/mounit.py

Lines 13 to 17 in d6f8d53

bot = commands.Bot(command_prefix="!")
minTime = 300 #minimum time in seconds between each random sentences iterations
maxTime = 1600 #maximum time in secondsbetween each random sentences iterations
chanid = CHANNELID_HERE #Discord Channel ID
adminid = ADMINID_HERE #Discord USER Admin ID

These variables could be loaded from the environment with os.getenv("MOUNIT_MINTIME"). Alternatively, configs could be loaded from ~/.config/Mounit/config.json. https://www.programiz.com/python-programming/json

This allows you to run the bot without accidentally committing the bot's configs to the Git repo.

Access to ~/.config can be done with appdirs to keep it cross-platform

Wallpaper reaction emojis does nothing

Got the error

colour
raise TypeError(f'Expected discord.Colour, int, or None but received {value.class.name} instead.')
TypeError: Expected discord.Colour, int, or None but received str instead.

This is probably the color value for discord.Embed

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.