GithubHelp home page GithubHelp logo

dealien / red-magician Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 6.0 23.22 MB

A modified version of Twentysix's Red Discord Bot (https://github.com/Cog-Creators/Red-DiscordBot)

Home Page: https://dealien.github.io/Red-Docs/

License: GNU General Public License v3.0

Python 99.82% Batchfile 0.13% Shell 0.05%
discord discord-bot

red-magician's People

Contributors

aikaterna avatar aioxas avatar brayzure avatar calebj avatar canule avatar dealien avatar ehammarstrom avatar frostthefox avatar irdumbs avatar jan200101 avatar kowlin avatar laam4 avatar mindlesspuppetz avatar minijennjenn avatar orels1 avatar palmtree5 avatar phantium avatar planetteamspeakk avatar ryonez avatar scarletrav3n avatar scummboy avatar sedders123 avatar seenko avatar snappydragon64 avatar tekulvw avatar tmercswims avatar twentysix26 avatar vjfalk avatar yeahimrose avatar zelarpmaster avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

red-magician's Issues

Fix console log for commands executed in direct messages

When commands are executed in direct messages, the console reads
Command $xxxx executed by Username#0000 in channel None#Direct Message with Username

I would like to change it to read
Command $xxxx executed by Username#0000 in channel Direct Message with Username

"$file" command

Changes regarding the $file command and its various subcommands

Add "[p]fullstop" command

[p]fullstop stops playing music, clears the queue, and disconnects the bot from the voice channel. It is intended to fully stop and reset the audio player in case of problems or malfunctions. [p]fullstop is essentially the same as $stop, but it also disconnects the bot from the voice channel.

Slack status updates

Make the bot send status updates to Slack. This will help monitor the bot's status, especially when hosting the bot on Heroku.

Install psutil on Heroku deploy

Required for sysinfo.py

Traceback (most recent call last):
  File "red.py", line 639, in load_cogs
    owner_cog._load_cog(extension)
  File "/app/cogs/owner.py", line 974, in _load_cog
    self.bot.load_extension(mod_obj.__name__)
  File "lib/discord/ext/commands/bot.py", line 738, in load_extension
    lib.setup(self)
  File "/app/cogs/sysinfo.py", line 110, in setup
    raise RuntimeError("You need to run 'pip3 install psutil'")
RuntimeError: You need to run 'pip3 install psutil'

Automatically generate missing required data files

Install pillow on Heroku deploy

Required for identicon.py

Traceback (most recent call last):
  File "red.py", line 639, in load_cogs
    owner_cog._load_cog(extension)
  File "/app/cogs/owner.py", line 974, in _load_cog
    self.bot.load_extension(mod_obj.__name__)
  File "lib/discord/ext/commands/bot.py", line 738, in load_extension
    lib.setup(self)
  File "/app/cogs/identicon.py", line 298, in setup
    raise RuntimeError("You don't have Pillow installed, run\n```pip3 install pillow```And try again")
RuntimeError: You don't have Pillow installed, run
```pip3 install pillow```And try again

Fix serverquotes.py settings implementation

serverquotes.py uses code that was moved from red.py to load MemCachier settings. When that code attempts to load locally stored settings (when not hosted on Heroku) it errors, causing MemCachier quote storage to fail.

Error in Travis CI log:

Traceback (most recent call last):
  File "./red.py", line 639, in load_cogs
    owner_cog._load_cog(extension)
  File "/home/travis/build/dealien/Red-Magician/cogs/owner.py", line 972, in _load_cog
    mod_obj = importlib.import_module(cogname)
  File "/home/travis/virtualenv/python3.5.2/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 665, in exec_module
  File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
  File "/home/travis/build/dealien/Red-Magician/cogs/serverquotes.py", line 35, in <module>
    servers = settings.mem_servers
NameError: name 'settings' is not defined
Failed to load: cogs.serverquotes

Improve code coverage analysis

Either make --dry-run configure and run the bot like normal, but quit after connecting to Discord, or add another argument to settings.py that has the aforementioned effect.

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.