Commit Graph

315 Commits (2e1967cb5ad2aa2ee18c4f59f3df6bcc88633e8c)

Author SHA1 Message Date
Joey Hines 9936ec1590 Moved most of the wiki to sphinx 2019-01-02 17:48:31 -06:00
Joey Hines 320c1b1c61 Added docstrings to all the commands 2019-01-02 17:17:53 -06:00
Joey Hines 63e732c3b1 Initial Documents Commit 2019-01-01 11:05:19 -06:00
Joey Hines a6817a710c Added token to SettingsAPI 2019-01-01 10:18:15 -06:00
Joey Hines 23739b31f9 Added first pass of an api key system
+API Keys are kept in the database and are 25 characters long
+Each key will have certain permission allowed to it
+Only permission right now is for using bot commands
2018-12-29 19:41:18 -06:00
Joey Hines 61433c271f All bot commands now have their basic functionality reimplemented
+All commands should return a json or list of jsons
+Basic tests have been added for each command
2018-12-18 12:13:14 -06:00
Joey Hines 83a1b7a175 Added test file for commands and redid command decorators
+ Command decorator now puts functions to to one dict
+ Params, name, and the function object are in this dict.
2018-12-17 15:16:21 -06:00
Joey Hines 59bac55fd1 Moved test cases to their own directory 2018-12-17 10:13:37 -06:00
Joey Hines b8d54ccdcf Added interface for the MCM Model api 2018-12-17 10:02:43 -06:00
Joey Hines 7dc93e4439 First pass on username update background task 2018-12-15 16:00:45 -06:00
Joey Hines a4d71858bf Few more tweaks to UI 2018-12-15 15:12:17 -06:00
Joey Hines efe12b5b21 Incredibly basic first pass of a website for Geoffrey
+ Added an index page with a dynamic count
+ Added a List page for each model
+ Selling command improvements
2018-12-13 19:58:59 -06:00
Joey Hines bfa34b3d2c Command API Improvements 2018-12-08 15:37:00 -06:00
Joey Hines eda29e2011 Bot now runs in its own screen 2018-12-01 20:17:19 -06:00
Joey Hines 37dd0950a5 Bot now starts automatically
+subprocess kicked off when URLs are being loaded
+renamed bot dir to discord_bot
2018-12-01 18:25:53 -06:00
Joey Hines 803d25d67f Added command API and bot
+Rewrote all of Geoffrey's commands for Django
+Command api allows all the geoffrey commands to be accessed though a REST API
+Added foundation for getting bot to work, no commands at the moment
2018-11-21 20:09:30 -06:00
Joey Hines 7748ab4010 Initial Commit for v2
Began migration of project to Django
Created Django models for all current SQLAlchemy models
2018-10-26 18:42:53 -05:00
Joey Hines 2557e75a2f Limited how many shops can appear in ?selling 2018-10-20 13:33:13 -05:00
Joey Hines 517cb21f14 Fixed issue where entering an empty string would cause issues 2018-10-16 17:22:11 -05:00
Joey Hines 219c993989
Removed dimension flag from find_around 2018-10-14 10:01:19 -05:00
Joey Hines e69c01f7b0
Create LICENSE 2018-10-03 11:03:17 -05:00
Joey Hines 78fd5a7cc7 Fixed a broken error message in ?delete_item 2018-09-30 15:13:48 -05:00
Joey Hines 7a3eb8d112 Fixed bug inf ?info, was looking for wrong error 2018-09-27 15:47:29 -05:00
Joey Hines 9b632ce1b8 Error message to error users now shows the command. 2018-09-27 15:06:15 -05:00
Joey Hines af3dc446d7 Updated version to 1.2 2018-09-27 11:34:49 -05:00
Joey Hines 43743d59f5 Made the add_player() function is DatabaseInterface more robust. 2018-09-27 11:25:32 -05:00
Joey Hines 20ebd0bc62 Updated test cases for ?selling 2018-09-26 08:53:58 -05:00
Joey Hines 6d9c262433 ?info now gives priority to complete matches to a location name 2018-09-26 08:48:23 -05:00
Joey Hines bd3c6fa0af Shops selling 0 items for a price now go to the bottom of the ?selling
list
2018-09-26 08:06:47 -05:00
Joey Hines 2b6db04d28 Added check to append "..." when a shop has more than 5 matches. 2018-09-26 07:44:42 -05:00
Joey Hines 2dab55ab78 ?selling now groups items sold at the same shop together. 2018-09-25 09:39:30 -05:00
Joey Hines 930d9bbd8c ?selling now also gives the shop location and can show 25 entries. 2018-09-22 09:48:33 -05:00
Joey Hines 67bc539706 changed to version v1.1.0 2018-09-21 21:09:12 -05:00
Joey Hines a4a90ea626 ?help in a private message no longer gives "I send you some help in the DMs" message 2018-09-21 21:08:14 -05:00
Joey Hines 6505b4df3d Updated readme.md to explain more commands. 2018-09-21 20:34:29 -05:00
Joey Hines 0e480ccebe Updated more tests 2018-09-21 19:58:56 -05:00
Joey Hines a14a3e1d31 Added a constant for test cases so its easy to change the mc username. 2018-09-21 12:22:17 -05:00
Joey Hines 3026b240f4 Added better error checking for find_player and add_player 2018-09-21 07:27:32 -05:00
Joey Hines 57ec4830cf More clearly defined the difference between the interface and commands layer. Interface handles getting certain info from the database while commands formats that data. 2018-09-20 12:25:42 -05:00
Joey Hines 2aad1a3344 Updated tests for Commands and refactored the location lookup logic 2018-09-20 09:20:30 -05:00
Joey Hines 63970bdbef Updated DatabaseInterface unit tests to have better code coverage. 2018-09-19 15:41:32 -05:00
Joey Hines 5f3d80683c updated version to 1.0.3 2018-09-19 09:26:22 -05:00
Joey Hines 1bf2ac931b fixed ?selling now raising an error if no argument is provided 2018-09-19 09:25:02 -05:00
Joey Hines 7b36784a89 Username update code now working 2018-09-19 09:23:03 -05:00
Joey Hines 959b587e14 changed y_pos in edit_pos to z_pos 2018-09-19 08:28:42 -05:00
Joey Hines 2656ae5940 update version number 2018-09-17 09:01:02 -05:00
Joey Hines 446adfa6dc help in channel message now works regardless of case 2018-09-16 22:52:04 -05:00
Joey Hines e2e943f22c Fixed error message with ?register when the user was already in the database 2018-09-16 17:32:14 -05:00
Joey Hines 8373bc0c31 register has a lot less duplicated code from add_player() in DatabaseInterface. Might have been part of the problem. 2018-09-16 13:34:33 -05:00
Joey Hines b4d7e598d3 missing word 2018-09-15 19:54:03 -05:00