Commit Graph

173 Commits

Author SHA1 Message Date
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
19ff2ffd46 Fix game not showing and string the user id 2018-03-25 19:28:36 +00:00
Jeremy Zhang
c35743b498 JustDelete the message instead of iterating during guild remove 2018-03-25 05:57:00 +00:00
Jeremy Zhang
e8424a63c8 Customizable msg posting timeout and msg length 2018-03-25 04:43:39 +00:00
Jeremy Zhang
18f25d0852 Fix channel history typo 2018-03-24 18:20:21 +00:00
Jeremy Zhang
37a61bc465 Shard command no longer returns None 2018-03-24 17:21:13 +00:00
Jeremy Zhang
da8ef6cdd1 Check shard command and sharding support for fetch msg script 2018-03-24 17:04:09 +00:00
Jeremy Zhang
200947e78f Fix playing status not showing 2018-03-24 14:54:50 +00:00
Jeremy Zhang
21dc5d0925 Fix handling raw message deletion 2018-03-24 14:46:32 +00:00
Jeremy Zhang
f7caa5ede5 Fix Titan Commands 2018-03-24 08:19:46 +00:00
Jeremy Zhang
930c026108 Fix handling discord user ban 2018-03-24 08:02:03 +00:00
Jeremy Zhang
817788383d Clear bufferarray on error too 2018-03-22 23:43:07 +00:00
Jeremy Zhang
731b47e978 Set various ids to integers in raw receive 2018-03-22 23:18:39 +00:00
Jeremy Zhang
00d9a9a356 Fix channel update not responding 2018-03-22 23:07:52 +00:00
Jeremy Zhang
f7b3e4e65e AutoShard Titan bot with dpy rewrite, Closes #71 2018-03-22 22:55:09 +00:00
Jeremy Zhang
487f5756f5 Parse role mentions 2018-03-04 06:31:08 +00:00
Jeremy "EndenDragon" Zhang
d438b6d34f
Update cleanup db messages to message id 2018-03-02 19:59:40 -08:00
Jeremy Zhang
63979835ab Animated Emoji Support, Closes #85 2018-03-01 07:57:51 +00:00
Jeremy Zhang
c41e241fd8 ignore exception if pushing dupe msg on server join 2018-02-18 01:15:11 +00:00
Jeremy Zhang
076870763e Push message first before hitting the database 2018-02-16 20:54:06 +00:00
Jeremy Zhang
e6422b118d Display NSFW channel warning 2018-01-28 00:43:53 +00:00
Jeremy Zhang
a2f378da57 Only act upon servers for channel create and remove 2018-01-25 11:20:56 +00:00
Jeremy Zhang
ff81c5009d Capture and promptly update when discrim changes 2018-01-25 11:19:43 +00:00
Jeremy Zhang
becc65a2da Cannot cast int to an object 2018-01-23 22:50:11 +00:00
Jeremy Zhang
56a3527152 Fix typo in discordbot guilds db file 2018-01-23 22:47:13 +00:00
Jeremy Zhang
e597ac24c8 Fix typo in discordbot guilds db file 2018-01-23 22:46:54 +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
ff42f4195b Remove discordbot on init 2018-01-23 19:13:13 +00:00
Jeremy Zhang
2c949d911b Move tracking online users to redis 2018-01-21 03:15:02 +00:00
Jeremy "EndenDragon" Zhang
36b31675e1
Fix server variable for the last commit
Because fixing a bug shouldn't introduce another one.
2018-01-14 23:53:28 -08:00
Jeremy Zhang
6c351c98fe Fix grabbing bans during server join to fix crash 2018-01-14 21:12:14 +00:00
Jeremy Zhang
8028813e0f Remove discordio partnership and repurpose it to custom invite link field 2018-01-13 18:37:42 +00:00
Jeremy "EndenDragon" Zhang
0ba1a56ade
Rename server command to server
Because you can't really have two commands named the same, yeah?
2018-01-09 17:07:28 -08:00
Dylan Fox
78d00c8203
Add invite and server commands 2018-01-09 14:58:41 -08:00
Jeremy Zhang
0297481a5e Remove unused import and variable in poststats 2018-01-07 01:23:43 +00:00
Jeremy Zhang
ae12b8fa22 Posting stats for bots.discord.pw 2018-01-06 09:59:04 +00:00
Jeremy Zhang
4ae37fa854 Post stats before indexing all servers 2018-01-05 10:00:24 +00:00
Jeremy Zhang
71097eca8b Add posting status for discordbots.org 2018-01-05 09:21:25 +00:00
Jeremy Zhang
5698f12d58 Process individual servers instead of all for fetch messages 2017-11-26 04:58:52 +00:00
Jeremy Zhang
2493cd80bc Read message history being disabled might interfere with reading channel messages 2017-11-25 02:50:14 +00:00
Jeremy Zhang
d1b94ca904 Command to activate even if titan is nicknamed 2017-11-14 20:58:19 +00:00
Jeremy Zhang
07de4b3f0c update members first then deal with the messages 2017-11-07 20:19:10 +00:00
Jeremy Zhang
eff2b3bb46 Display rich embed support 2017-11-05 05:59:06 +00:00
Jeremy Zhang
bba4950ddc Server administrators may disable captchas for guest users 2017-11-04 02:58:26 +00:00
Jeremy Zhang
c42f808715 Guild member duplicate checking in the database 2017-09-26 03:52:46 +00:00
Jeremy Zhang
ad833434dd Renamed webhook icon to guest icon for preperation of avatars in the client 2017-09-24 01:22:07 +00:00
Jeremy Zhang
62b4c30d52 Copy all channels to a seperate list before iterating 2017-09-22 02:10:37 +00:00
Jeremy Zhang
fd5a851d2a cleanup db message fix, guild_id 2017-09-22 01:42:49 +00:00
Jeremy Zhang
f46d33c943 Delete the messages before fetching new messages 2017-09-22 01:39:43 +00:00
Jeremy Zhang
495a08ea12 Fixes to cleanup and fetch scripts 2017-09-22 01:33:55 +00:00
Jeremy Zhang
91f926bfe3 Delete inactive channel messages and better print stmts 2017-09-22 01:18:30 +00:00
Jeremy Zhang
c0798bd5b1 Better cleanup db msgs? 2017-09-22 00:53:59 +00:00
Jeremy Zhang
aed6192364 Firing delete message twice fix 2017-09-16 17:16:34 +00:00
Jeremy Zhang
46f5594763 Filter presence updates to prevent updating everything, which might create cpu hog 2017-09-16 16:53:39 +00:00
Jeremy Zhang
c23b71d050 Implement server webhook icons as cosmetics & fixes 2017-09-13 05:55:51 +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
25cd964403 Initial support for channel categories 2017-09-09 21:46:00 +00:00
Jeremy Zhang
8be753b0c3 Remove mysql specific utf config to discordbot utilities files 2017-09-09 04:20:39 +00:00
Jeremy "EndenDragon" Zhang
c2a5180f55 Add logging location to discordbot example config 2017-09-07 12:05:58 -07:00
Jeremy Zhang
5df40bf558 Fix real timestamp in messages from changing during edits 2017-09-07 05:42:31 +00:00
Jeremy "EndenDragon" Zhang
71b29cd75d Set logging location in config 2017-09-06 21:00:09 -07: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
0cfcb42ac4 Update and delete messages even if not in discordbot messages cache, and raise max_messages deque 2017-09-06 04:58:46 +00:00
Jeremy Zhang
a99b0075bc Discordbot emit on role update typo fix 2017-09-05 07:37:04 +00:00
Jeremy "EndenDragon" Zhang
aa9075f484 Inital postgresql implementation (#46) 2017-09-04 23:54:54 -07:00
Jeremy Zhang
871c8fc22f New .com domain! 2017-09-01 04:45:35 +00:00
Jeremy Zhang
a3971960e1 Don't alter avatar urls for now 2017-08-30 00:25:25 +00:00
Jeremy Zhang
654dd3faf3 Automatic webhook creation and deletion, Resolves #42 2017-08-27 21:50:41 +00:00
Jeremy Zhang
0631ccc96d Change to static image and color sidebar fix 2017-08-25 23:37:54 +00:00
Jeremy Zhang
e3f57500ff Realtime updating channel list 2017-08-25 06:37:14 +00:00
Jeremy Zhang
d1225e5273 Realtime emoji and discord member sidebar fix 2017-08-22 07:53:41 +00: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
4ed2d14bc3 Basic websockets authentication handling 2017-08-21 04:26:51 +00:00
Jeremy Zhang
72649f069e Basic message relaying via WS 2017-08-20 19:56:54 +00:00
Jeremy Zhang
fb8cfe3abc Converted webapp portion to python 3.5. Resolves #32 2017-08-19 00:33:50 +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
eaf55ba027 Modify github links to TitanEmbeds organization 2017-07-30 23:10:35 +00:00
JustMaffie
45df6b19fc Added a protection against crash chars that make discord crash, this is not available to be disabled, this only helps out your server. 2017-07-29 23:52:24 +02:00
Jeremy "EndenDragon" Zhang
82db716b61 Moved some text fields over to longtext type (#21) 2017-07-10 04:37:52 +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
3c82b3b6b0 Custom discord.py version 2017-06-30 07:16:34 +00:00
Jeremy "EndenDragon" Zhang
a90d59efad Bot cleandb (#20)
* Initial Code

* Cleanup database commit
2017-06-24 15:02:34 -07:00
Jeremy Zhang
38df1a8ed0 Add default error reporting channel id to config example and raise heartbeat sending interval whoops 2017-06-13 02:36:38 +00:00
Jeremy Zhang
7d3c099bd7 Wait until database is online for all events before processing 2017-06-13 02:29:39 +00:00
Jeremy Zhang
9b79871f2b Send message to channel when connection to database changes 2017-06-13 02:16:45 +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
30092fde01 Implemented Visitor View -- kinda betaish still 2017-06-09 04:22:33 +00:00
Jeremy Zhang
0b96794120 Backend support for discordio links and able to edit in admin panel 2017-06-04 05:32:23 +00:00
Jeremy Zhang
f25669e1bc Add emoji capability to bot 2017-05-30 01:05:43 +00:00
Jeremy "EndenDragon" Zhang
9661a7cbce Typo in request offline members 2017-05-27 12:18:52 -07:00
Jeremy Zhang
49edcce60d Fetch Last Messages Util 2017-05-27 11:29:55 -07:00
Jeremy Zhang
5cb224e20c Changed unicode encoding in mysql, it is being lazy with 3 chars not 4 2017-05-27 10:50:52 -07:00
Jeremy Zhang
d90cd64b0f Add permission checking for ban and kick 2017-05-26 19:24:04 -07:00
Jeremy Zhang
64079b449d Fix kick message 2017-05-26 19:03:29 -07:00
Jeremy Zhang
afda68d138 Added kick and ban commands to bot 2017-05-26 19:00:50 -07:00