Commit Graph

33 Commits (15ace55c243573b724ba94b02aeccba821f03073)

Author SHA1 Message Date
Trivernis e27b46ac6a Added Rich Embeds
- rich embed for `queue`
- rich embed for `uptime`
6 years ago
Trivernis 5d90ff6830 Changed presences storage
- moved presences to main.db
- added detailed description to README
6 years ago
Trivernis b7e66f8fd5 Added Tests
- added tests for lib/guilding
6 years ago
Trivernis 990628244e Added Tests
- added tests for the dj class
- moved to rewire for mocking
6 years ago
Trivernis d5d5c12126 Restructured Tests
- removed previous testfiles
- added test.js where all tests are stored
- added tests for lib/utils
- added standard test config
- added test config to devDependencies in package.json
- reconfigured circleci configuration
6 years ago
Trivernis a712f41a55 Changes to Config Syntax
- moved the discord token and youtube api key to ` api.botToken`  and `api.youTubeApiKey` in the `config.json` file
- added `lib.utils.ConfigChecker` class to check for missing required attributes in the config
- Updated README to new circumstances
6 years ago
Trivernis 5845144a83 Fixes and Cleanup
- allowing Promises for global command reply returns
- event callback regristration wrapped in main function
- stored reply for not playing music (`~np`) in servercommands.json
- made imports constant for lib/cmd
- moved YouTube url operations to lib/utils
- removed try catch surrounding promises in play and playnext callback and added .catch to promises
- added .catch to promises in music.js
- added license README badge
6 years ago
Trivernis bab7ddb538 Changes to the music function
- Songname is retrieved before playing
- for playlists the first songname is retrieved before playing, the others are retrieved in the background
- ~np now responses with Rich Embeds
6 years ago
Julius Riegel 1db9ec2083 Changes to lib/music for CI
- changed RegularExpression that resulted in failure
6 years ago
Trivernis 0729c9b31c Command Promises
- Command functions are allowed to return promises
- resolve and reject both are the answer the bot will send
- Implemented promises for things that couldn't use them before
6 years ago
Trivernis ee96094473 Rich Embed for help command 6 years ago
Trivernis 443570f8d6 Fixes and Features
- fixed guilds first command problem
- switched from markdown to rich embed for displaying saved songs/playlists
6 years ago
Trivernis 149e73621f Minor music performance changes 6 years ago
Trivernis e4e26cd51f Integration of SQLite
- Instead of storing data in files, the bot stores data in database-files (wow)
- Why? Because Databases are best
6 years ago
Trivernis b0ca631fb8 Fixed Role-Permission Bug
- Fixed bug where role-permission did not work (except for the bot-owner commands)
6 years ago
Trivernis c29c578f92 Fixed role bug
- now roles should work again from the templates
6 years ago
Trivernis 2b6ea2123f New command syntax
- creating commands requires a command template that is stored in the commands folder in a json file
- command templates manage permissions, arguments, responses and the command name
- added config file -> needs to be created, template coming soon
6 years ago
Trivernis 98b809ba66 Code Reformatting 6 years ago
Trivernis 2400429b72 New functionalities
- added presence rotation
- added command permission
- added owner commands
- updated README
6 years ago
Trivernis 38fdece6c3 Code Cleanup 6 years ago
Trivernis 17e0883928 Updated jsdoc 6 years ago
Trivernis 63981f2a90 TODO update 6 years ago
Trivernis a88071f60f Removed embedded YTAPI-Key 6 years ago
Trivernis c884211150 Added Data function
- DataHandler handles Data (wow)
- save to save playlist (server specific)
- saved to get saved playlist
- play with saved name plays the saved playlist
- data is stored in data folder
 - every server has a subfolder
 - entry file to manage all files that should be accessable
- fixed bug where music doesn't play when play was invoked
 -  if this bug appeares again, the skip command could fix it (because it creates a dispatcher if none exists)
6 years ago
Trivernis 8d53433dea Finished modules
- Bot exits music after 5 minutes
6 years ago
Trivernis e16965c86f Added supporting classes
- added class GuildHandler -> use this for commands that sould be run on a server
- added class Servant -> handles commands, used by GuildHandler
- added connected getter to DJ
- changed from checking for Connection to checking if connected
- added possibility to assign a VoiceChannel at connecting
- commands now contain the prefix instead of being a child element of it
- added passing additional arguments as third parameter of the command callback
- removed complex command parsing function, rewrote it with better pattern matching
- removed music commands from bot.js and moved them to GuildHandler class
- changed from cmd.createCommand to createGlobalCommand
6 years ago
Trivernis d153eed7f5 Added FIXME 6 years ago
Trivernis 540007318e Added TODO 6 years ago
Trivernis 08091ba15a More Fixes
- Playlists can be saved (will be server specific in the future)
- Saved playlists can be played with ~play
6 years ago
Trivernis 3dde5c40cb Fixed Bugs created by changing music.js
- Fixed output of current song
- Fixed output of playlist
- Fixed toggeling skip
- Fixed next auto toggle
6 years ago
Trivernis ec888aa5b7 Improved music.js
- Added DJ class
6 years ago
Trivernis 4e3e992e04 Bugfix
- shuffling doesn't delete the queue anymore
6 years ago
Trivernis 68a56ee3a5 Initialized Content 6 years ago