Commit Graph

53 Commits

Author SHA1 Message Date
Jeremy Zhang
3783cf1152 Move columns found in discord api on the guilds table into redis 2018-07-20 23:10:24 +00:00
Jeremy Zhang
ee051074a7 Remove messages reference 2018-07-18 00:49:32 +00:00
Jeremy Zhang
86c7232b35 Remove guild members table for storing in redis 2018-07-17 23:47:30 +00:00
Jeremy Zhang
56ba9bc127 Reimplement remove message table 2018-07-16 23:47:25 +00:00
Jeremy Zhang
89b12d06ab Revert "Remove messages table", Accidentally committed in dev code
This reverts commit 6d6b390431.
2018-07-16 23:43:41 +00:00
Jeremy Zhang
6d6b390431 Remove messages table 2018-07-16 23:34:13 +00:00
Jeremy Zhang
de94f87c45 Fix gino bugs, reimplement ban and revoke cmds, enforce postgresql 2018-07-10 19:06:54 +00:00
Jeremy Zhang
ac225c84f5 Initial switch to gino for discordbot db 2018-07-10 07:04:19 +00:00
Jeremy Zhang
62ae4825ca Remove async from delete message typo 2018-03-31 04:05:20 +00:00
Jeremy Zhang
46926cd93c Run in executor instead 2018-03-28 04:13:32 +00:00
Jeremy Zhang
4820fba2ae Use scoped session 2018-03-26 18:01:38 +00:00
Jeremy Zhang
d400c022c1 Close db connection at end 2018-03-26 15:35:31 +00:00
Jeremy Zhang
5fa1e43e2a Throw threadpool out of the window 2018-03-25 22:16:55 +00:00
Jeremy Zhang
e0b18fb94f Revert "Keep trying until session obtained"
This reverts commit 5364cf9004.
2018-03-25 21:38:11 +00:00
Jeremy Zhang
5364cf9004 Keep trying until session obtained 2018-03-25 21:26:53 +00:00
Jeremy Zhang
1e43f607b6 Revert "Not close session for now"
This reverts commit d3ce86f3c0.
2018-03-25 21:17:08 +00:00
Jeremy Zhang
d3ce86f3c0 Not close session for now 2018-03-25 21:04:40 +00:00
Jeremy Zhang
b767df14c9 Revert "Wait until got session"
This reverts commit fa3d533354.
2018-03-25 20:31:25 +00:00
Jeremy Zhang
fa3d533354 Wait until got session 2018-03-25 20:24:39 +00:00
Jeremy Zhang
70b2b266c8 Update member if there are discreptancies in db 2018-03-25 20:12:58 +00:00
Jeremy Zhang
c35743b498 JustDelete the message instead of iterating during guild remove 2018-03-25 05:57:00 +00:00
Jeremy Zhang
930c026108 Fix handling discord user ban 2018-03-24 08:02:03 +00:00
Jeremy Zhang
f7b3e4e65e AutoShard Titan bot with dpy rewrite, Closes #71 2018-03-22 22:55:09 +00:00
Jeremy Zhang
becc65a2da Cannot cast int to an object 2018-01-23 22:50:11 +00:00
Jeremy Zhang
aa199ad818 Use a more optimal primary key and integer to store snowflakes 2018-01-23 21:08:55 +00:00
Jeremy Zhang
eff2b3bb46 Display rich embed support 2017-11-05 05:59:06 +00:00
Jeremy Zhang
c42f808715 Guild member duplicate checking in the database 2017-09-26 03:52:46 +00:00
Jeremy Zhang
f46d33c943 Delete the messages before fetching new messages 2017-09-22 01:39:43 +00:00
Jeremy Zhang
8a7e3322b9 Remove global header when the bot is not connected to the database 2017-09-11 20:33:20 +00:00
Jeremy Zhang
5df40bf558 Fix real timestamp in messages from changing during edits 2017-09-07 05:42:31 +00:00
Jeremy "EndenDragon" Zhang
600627d2e2 Allow the bot to work with not having Administrator permissions (#47) 2017-09-06 17:59:22 -07:00
Jeremy Zhang
0539efb204 WS Realtime for message actions and Sidebar members list presence update 2017-08-22 07:01:40 +00:00
Jeremy Zhang
72649f069e Basic message relaying via WS 2017-08-20 19:56:54 +00:00
Jeremy Zhang
68d8882d3e Fix mentions with nicknames 2017-08-10 02:56:45 +00:00
Jeremy Zhang
77bde8f258 Better nickname support
- Username field will not be overwritten with the nickname.
- Mentions work again!
- User chip will show nickname instead of username if present
- Authenticated embed users sidebar nickname support
2017-08-10 02:05:05 +00:00
Jeremy Zhang
3b5707cd15 Hotfix for webhooks not showing up in the embeds. Message author object sometimes gives User for webhooks. User objects does not have nicknames. Check if the user/author object has nick attribute. 2017-08-03 22:39:30 +00:00
JustMaffie
2ace5f7040 Implement nickname support
Nicknames will be shown in both the embed and discord.
2017-08-02 19:03:39 +00:00
Jeremy Zhang
087606bd40 Implemented Webhooks to make sending messages look more real, as an option 2017-07-01 06:52:21 +00:00
Jeremy Zhang
2647753007 Show global header message when bot loses connection with server 2017-06-13 01:39:49 +00:00
Jeremy Zhang
f25669e1bc Add emoji capability to bot 2017-05-30 01:05:43 +00:00
Jeremy Zhang
afda68d138 Added kick and ban commands to bot 2017-05-26 19:00:50 -07:00
Jeremy Zhang
b7b4187094 Initial command structure for bot 2017-05-20 07:50:29 +00:00
Jeremy Zhang
71ec14a609 Populate banned user for bot 2017-05-14 21:34:14 +00:00
Jeremy Zhang
2ab18abc11 Fixed some discord bot issues and added no-init flag to not index at start 2017-05-14 21:05:51 +00:00
Jeremy Zhang
a621fa8b0a Populate msgs on server join and remove on leave 2017-05-08 20:19:45 -07:00
Jeremy Zhang
fc169c2063 Transition over to use db instead of fetching discord REST 2017-05-06 18:19:20 -07:00
Jeremy Zhang
9c24093901 Fetching database for messages instead 2017-05-06 17:19:12 -07:00
Jeremy Zhang
b537aacb1c Basic pushing information to the database of members and guilds 2017-05-06 15:27:07 -07:00
Jeremy Zhang
e7e0c6e505 Discord bot db pool recycle set 2017-05-06 01:09:54 -07:00
Jeremy Zhang
b43d29bca5 Prevent update msg when no message exists 2017-05-06 01:04:34 -07:00