Jonatan Pålsson
529bcbb003
Add commands support
2017-06-12 21:47:14 +02:00
Jonatan Pålsson
bf661d9577
Fix nick treates as channel issue
...
Since nickname changes apply server-wide, they were incorrectly treated
as their own channels (this was a bug) - fixed this, and nickname
changes are now logged in all channels the bot has joined.
2017-06-10 12:23:07 +02:00
Viktor Sjölind
96e6da2752
Refactor to run in both Python 2.7 and Python 3.6
...
Refactor to run in both Python 2.7 and Python 3.6. This is important as
python 2.7 is end of life.
I tried to edit as few things as possible in this commit to minimize
conflicts which means the code could be prettier.
Signed-off-by: Viktor Sjölind <viktor@sjolind.se>
2017-06-10 11:59:11 +02:00
Jonatan Pålsson
2125b2d739
Make flask thread a daemon
...
This means the flask thread will also exit when the main thread receives
a KeyboardInterrupt. This closes #12 .
2017-06-10 11:24:21 +02:00
Jonatan Pålsson
924fad4320
Use ',' rather than 'and' in .select() queries
...
This closes #11
2017-06-10 11:22:54 +02:00
Jonatan Pålsson
6292af08e6
Add environment variables for config
2017-06-10 10:57:41 +02:00
Jonatan Pålsson
a4a872cf3d
Calculate colors for all nicks in pubmsgs
2017-06-04 19:18:31 +02:00
Jonatan Pålsson
3f627b7d83
Fix bug which causes crash on quitting users
2017-06-04 18:23:45 +02:00
Jonatan Pålsson
a80a37545a
Allow external connections to web interface
2017-06-04 18:10:59 +02:00
Jonatan Pålsson
0b0ff1b8c8
Rewrite to use flask and peewee
2017-06-04 17:54:02 +02:00
Jonatan Pålsson
301ec5c8f7
Add support for GH pull requests
2017-06-01 12:17:15 +02:00
Jonatan Pålsson
e4f5c141ae
Add support for toggling joins/parts
...
This wraps all messages in <p> tags, which each have a class depending
on the message type, and also adds a button for filtering out the hide &
join classes specifically
2017-05-31 15:01:44 +02:00
Richard Pannek
ec84b9165f
Highlight targeted time in red
...
Linking to a time within one day didn't highlight it in any way, this patch colors the targeted time (from the hash in the URL) red.
2017-05-31 11:46:37 +00:00
Jonatan Pålsson
69a5cccbf6
Configure for pelux channel
2017-05-31 11:46:08 +00:00
Jason R. Coombs
1f4a5bd42c
Fix possible KeyError if code is not a color code
2012-10-09 17:41:17 -04:00
Jason R. Coombs
438a0785fb
Fix IndexError due to unintentionally moving call out of try block
2012-10-09 17:39:50 -04:00
Jason R. Coombs
69bdad2ec5
Added support for converting the ANSI color codes to HTML styles
2012-10-09 04:48:17 -04:00
Chris Oliver
db3f3ea308
Strip ASCII color codes from messages. Fixes #18
2012-09-17 14:23:18 -05:00
Filip H.F. "FiXato" Slagter
04aa153b0b
Bugfix: forgot to strip the newlines from channellocations
2012-06-12 02:07:07 +02:00
Filip H.F. "FiXato" Slagter
7af5c60e2a
Force lowercase channel keys
...
Force the channel keys of the CHANNEL_LOCATIONS_FILE config to
lowercase.
2012-06-12 01:53:04 +02:00
Filip H.F. "FiXato" Slagter
d1051e5304
Add support for timezone offsets on a per channel basis.
...
You can now create a file at CHANNEL_LOCATIONS_FILE that contains a
list of channels and (pytz) timezone location names.
All log files for specified channels from that point on will have their
timestamps adjusted to the given timezone.
If a channel is not specified in the config file, it will default to
the timezone specified by DEFAULT_TIMEZONE (which defaults to UTC).
I've started storing this info in a separate config file as I plan to
move all the other settings into a config file as well so people don't
need to edit the script (allowing the script to be re-used more easily).
2012-06-11 23:05:00 +02:00
Filip H.F. "FiXato" Slagter
9b30109af8
Use the channel_title in one more position
...
Update for the lowercase channelname fix.
2012-06-09 01:37:15 +02:00
Filip H.F. "FiXato" Slagter
930cd6bc11
Force channel log filenames to be lowercase when appending to logs
...
In some rare cases a logfile with a different capitalisation was still
being created.
2012-06-09 01:29:07 +02:00
Filip H.F. "FiXato" Slagter
3b878cc2cc
Only write quit events on channels that actually had the user in it
...
Should prevent the quit messages from showing up in all channel logs.
2012-06-09 00:16:24 +02:00
Filip H.F. "FiXato" Slagter
5cdb575085
Only write the nick change event on channels that actually have the nick on the channel
...
This should prevent nick changes appearing in logs that don't have the
user on the channel.
2012-06-08 23:44:16 +02:00
Chris Oliver
0be9eac469
Added regex to parse urls. Closes #14
2012-02-09 22:32:52 -06:00
Chris Oliver
846df91396
Catch all FTP errors
2012-01-19 20:11:13 -06:00
Chris Oliver
21929c84b7
Release 0.4.2
2012-01-19 19:41:20 -06:00
Chris Oliver
978d22c7b7
Clean up upload error handling, fixes #11
2012-01-19 19:38:31 -06:00
Chris Oliver
8e0362d4bf
Clarify configuration settings. Fixes #12
2012-01-19 19:33:50 -06:00
Chris Oliver
b526393da8
Configurable log folder locally
2012-01-19 19:30:06 -06:00
Chris Oliver
673c93d500
Try reconnect if other type of error
2012-01-19 19:14:37 -06:00
Chris Oliver
829de89d1f
Split filenames on windows
2012-01-19 13:22:38 -06:00
Chris Oliver
a7f48ea6cc
Use python path splitting to allow windows filename parsing
2012-01-19 13:18:10 -06:00
Chris Oliver
1700265b18
Skip if empty remote filename
2012-01-19 12:43:37 -06:00
Chris Oliver
925df20d1a
Reconnect FTP if we have a timeout.
2011-12-13 18:30:47 -06:00
Chris Oliver
82fd03724c
Version bump and added example log file
2011-10-22 11:15:10 -05:00
Chris Oliver
b8b847fb88
Removed old configs and added debug to file upload
2011-10-22 11:10:59 -05:00
Chris Oliver
aa7bfe56ae
Display filename when uploading
2011-10-22 10:24:12 -05:00
Chris Oliver
de141feead
Create directory on 553 error
2011-10-22 10:22:36 -05:00
Chris Oliver
4713430ec8
cgi escape messages
2011-09-24 17:02:13 -05:00
Chris Oliver
4f08a04e17
If no person is specified, then the mode changed on the channel
2011-09-23 17:13:44 -05:00
Chris Oliver
0460e401b7
Fixed a bug where channel modes would crash the bot and cleaned up excess whitespace
2011-09-23 17:11:42 -05:00
Chris Oliver
97a20675ca
Added nickserv auth
2011-04-07 10:13:31 -05:00
Chris Oliver
16952fc179
Removed my password...wow I'm dumb.
2010-12-11 17:28:29 -06:00
Chris Oliver
640ecff99d
Messages in a channel directed to the bot send a h a help message
2010-12-11 17:12:05 -06:00
Chris Oliver
9e178af3d6
Use FTP_WAIT and add a Back link
2010-12-11 16:43:01 -06:00
Chris Oliver
65c3a13504
Fixed uploading a bit
2010-12-11 16:33:47 -06:00
Chris Oliver
d38fe90fce
FTP uploading, doesn't create any directories though
2010-12-11 16:16:56 -06:00
Chris Oliver
4bc0ef41bf
Changed version number
2010-10-13 14:40:08 -05:00