Commit graph

  • 4b654ed12d Change to stdout because i'm a pillock. dngfx 2018-08-31 17:02:46 +0100
  • 8aad8080e1
    Merge pull request #9 from dngfx/master jesopo 2018-08-31 17:00:27 +0100
  • 95d1475f2c .friends support! Yay, lets be friends. dngfx 2018-08-31 16:58:25 +0100
  • faff26f58a
    Update Database.py dongfix 2018-08-31 16:10:16 +0100
  • 6e400a5470 Just duck things~ dngfx 2018-08-31 16:06:11 +0100
  • 1cafc3462a Table name typo jesopo 2018-08-31 16:02:48 +0100
  • b964995419
    All the settings (#11) dongfix 2018-08-31 15:49:57 +0100
  • 525de94c02 Actually, we do need find_all_by_setting jesopo 2018-08-31 15:34:56 +0100
  • edc0d9d391 Turns out we didn't need find_all_by_setting jesopo 2018-08-31 15:17:15 +0100
  • 5eaf4a8790 Add Database.UserChannelSettings.find_all_by_setting jesopo 2018-08-31 15:13:56 +0100
  • 303cf85ac6 Turns out we didn't need find_all_by_setting jesopo 2018-08-31 15:17:15 +0100
  • 8a80d8e67d Add Database.UserChannelSettings.find_all_by_setting jesopo 2018-08-31 15:13:56 +0100
  • bce8cef524 Migrate duck data to user_channel_settings. dngfx 2018-08-31 14:36:25 +0100
  • 0f1e683cd3 Where on earth did this PHP relic come from? dngfx 2018-08-31 14:16:27 +0100
  • 0bb3ae9273 Fix decoys stacking up and attempting to take over irc. dngfx 2018-08-31 14:10:15 +0100
  • a3f48c0844
    Merge pull request #8 from dngfx/master jesopo 2018-08-31 14:00:53 +0100
  • 67d8aceca9
    Merge branch 'master' into master jesopo 2018-08-31 14:00:42 +0100
  • 309b119ec5 That commit was just a decoy. dngfx 2018-08-31 14:00:09 +0100
  • a6d2f4cd5b Decoy Fiddling dngfx 2018-08-31 13:58:44 +0100
  • 25e6bfa900 Support replay keyword in EventHookContext.hook jesopo 2018-08-31 13:39:40 +0100
  • fd653ba117 Move event priority mechanics to get_hooks() to factor in contextual events jesopo 2018-08-31 13:32:46 +0100
  • 38e1b5d0ad Some networks don't prefix channel names in INVITE messages jesopo 2018-08-31 13:20:35 +0100
  • d4243edf63 Remove _unhook and always use get_hooks() in IRCLineHandler jesopo 2018-08-31 13:14:31 +0100
  • 6f2da2c40f Remove print in ducks.py jesopo 2018-08-31 12:56:31 +0100
  • b7cf524e98 Give modules event objects with "context"s, to facilitate purging all the event hooks for a module jesopo 2018-08-31 12:55:52 +0100
  • a95ff9b677 Support replay keyword in EventHookContext.hook jesopo 2018-08-31 13:39:40 +0100
  • 85af02ffe5 Move event priority mechanics to get_hooks() to factor in contextual events jesopo 2018-08-31 13:32:46 +0100
  • da1e87e335 Some networks don't prefix channel names in INVITE messages jesopo 2018-08-31 13:20:35 +0100
  • 03fbd3c8e1 Remove _unhook and always use get_hooks() in IRCLineHandler jesopo 2018-08-31 13:14:31 +0100
  • d6ee10c513 Remove print in ducks.py jesopo 2018-08-31 12:56:31 +0100
  • 9874f79b49 Give modules event objects with "context"s, to facilitate purging all the event hooks for a module jesopo 2018-08-31 12:55:52 +0100
  • 9cd4e86750
    Merge pull request #7 from dngfx/master jesopo 2018-08-31 12:08:55 +0100
  • 90ce92dc39 Revert "Reformat" dngfx 2018-08-31 10:51:47 +0100
  • abed9cf4ea Reformat dngfx 2018-08-31 10:50:37 +0100
  • bc5e08ead3 Fix a copy paste fail in IRCLineHandler that caused PARTs to be handled as QUITs jesopo 2018-08-31 10:33:53 +0100
  • a31ee247aa Fix a copy paste fail in IRCLineHandler that caused PARTs to be handled as QUITs jesopo 2018-08-31 10:33:53 +0100
  • 391671185d A start on .decoy for ducks. dngfx 2018-08-31 06:27:41 +0100
  • 301d3cb45a Revert the god awful database edits I made and make ducks.py convert to int. Might be an idea to make a make_int function? dngfx 2018-08-31 05:48:53 +0100
  • a635b1f0a0 Apparently i auto-reformatted the code. Either way I fixed ducks spawning endlessly. dngfx 2018-08-31 04:35:42 +0100
  • 8d6f0fffa9 Make channel values being inserted into SQLite integers if they're numbers. dngfx 2018-08-31 04:14:56 +0100
  • e272d50f49 Update strax generator with a bunch of new phrases and attacks. dngfx 2018-08-30 18:11:17 +0100
  • d37fc44343 use assure_call for trakt.py and lastfm.py jesopo 2018-08-30 18:06:46 +0100
  • d52037a6a3 use assure_call for trakt.py and lastfm.py jesopo 2018-08-30 18:06:46 +0100
  • da5e1bbcac
    Merge pull request #6 from jesopo/master dongfix 2018-08-30 17:26:44 +0100
  • 656cb8153a return "None" timeouts when there's no servers in IRCBot.servers jesopo 2018-08-30 17:20:55 +0100
  • f4a73a50dc
    Merge in (#5) dongfix 2018-08-30 17:12:37 +0100
  • b6eae3220c Database.add_server -> Database.servers.add jesopo 2018-08-30 17:08:21 +0100
  • 377b7d39df Update strax generator with a bunch of new phrases and attacks. dngfx 2018-08-30 16:57:45 +0100
  • 25eb6091bd
    Merge pull request #5 from dngfx/master jesopo 2018-08-30 16:18:57 +0100
  • b13c971507
    Update strax generator to make more sense when exclaiming instead of questioning. dongfix 2018-08-30 16:17:15 +0100
  • dceeef8648 Add missing comma in strax.py jesopo 2018-08-30 16:07:33 +0100
  • a4d660068c Add missing comma in strax.py jesopo 2018-08-30 16:07:33 +0100
  • 5052cddf79
    Merge pull request #4 from dngfx/master jesopo 2018-08-30 16:05:29 +0100
  • f6f183c2bd
    Fix strax.py to randomise other things and fix random choice 1,2 dongfix 2018-08-30 16:03:54 +0100
  • cce54d6d8e
    Merge pull request #3 from dngfx/master jesopo 2018-08-30 15:59:19 +0100
  • fd94b939e0
    Add strax.py .strax command. dongfix 2018-08-30 15:55:57 +0100
  • 07a63926c6 Log exceptions when calling events jesopo 2018-08-30 14:32:59 +0100
  • c10a35b6c0 Log exceptions when calling events jesopo 2018-08-30 14:32:59 +0100
  • 01a5032e87 Load whitelist in start.py, pass to ModuleManager.load_modules jesopo 2018-08-30 11:41:02 +0100
  • 568d714fb2 Return config from Config.load_config instead of setting it on bot jesopo 2018-08-30 11:40:41 +0100
  • c5d445c715 IRCServer.remove_own_mode doesn't take an "arg" jesopo 2018-08-30 11:17:00 +0100
  • ebd3ab47c8 Add missing "," in channel_op.py jesopo 2018-08-30 11:15:57 +0100
  • b216ed081b Add missing ":" in IRCLineHandler.LineHandler.mode() jesopo 2018-08-30 11:15:01 +0100
  • 2d4a1d42ce Only get highlight-spam-threshold setting when there's more than one highlight in a line jesopo 2018-08-30 11:14:19 +0100
  • 49cc4d8d7b Add help and usage for commands in channel_op.py jesopo 2018-08-30 11:13:26 +0100
  • bfca9bc207 default events on IRCLineHandler should use original_line, not line jesopo 2018-08-30 11:13:05 +0100
  • 9b7c7035f9 Refactor handling MODE in IRCLineHandler jesopo 2018-08-30 11:12:48 +0100
  • ceb73f586c Only show 2 biggest units in !seen jesopo 2018-08-29 15:52:04 +0100
  • 745141cb6d Give EventHooks their event name .lower() jesopo 2018-08-29 15:51:51 +0100
  • 669aa32c31 Report actual topic setter (use 333, not 332) jesopo 2018-08-29 15:17:06 +0100
  • 3ec521538a Print topics in print_activity.py jesopo 2018-08-29 14:57:40 +0100
  • 76d7a8de36 Delete "permissions" setting when it's empty jesopo 2018-08-29 14:34:52 +0100
  • 43ab3cbd10 Factor ping interval and ping timeout in to the main loop's minimum interval jesopo 2018-08-29 14:33:27 +0100
  • 5535bac4c7 Forgot to add IRCBuffer.py when I renamed it from IRCLog.py. oops. jesopo 2018-08-29 12:55:20 +0100
  • 4045c55ba3 Add missing comments in IRCLineHandler.LineHandler jesopo 2018-08-29 12:54:47 +0100
  • bb3eaff14a Fix CAP logic that was broken by recent IRCLineHandler refactor jesopo 2018-08-29 12:44:09 +0100
  • 0b95dfb98b Do a default event for received data if there's no hooks for it jesopo 2018-08-29 12:43:54 +0100
  • fead75cd2f Refactor IRCLineHandler in to an object that uses .on("raw") events jesopo 2018-08-29 12:20:25 +0100
  • a4a12a70c4 Change throttling mechanics to be "x lines per y seconds" jesopo 2018-08-29 08:38:43 +0100
  • 6ecae3b261 Add the ability to only require authentication if your nickname is registered jesopo 2018-08-28 18:16:19 +0100
  • ab9869aecb Change verbose logging to use propper logging system jesopo 2018-08-28 17:30:52 +0100
  • 423eacaefe Do throttling based on line count, not byte count jesopo 2018-08-28 17:30:14 +0100
  • b9d4e11b77 Add !givepermission and !removepermission to permissions.py jesopo 2018-08-28 16:53:21 +0100
  • b47bf49830 Log event path along with timing in EventHook.call jesopo 2018-08-28 16:35:24 +0100
  • 672b22e62c Change command.py to use call_limited jesopo 2018-08-28 16:35:07 +0100
  • 2728a8422f change IRCServer.Server.__str__ to return hostname:port instead of full __repr__ jesopo 2018-08-28 16:05:43 +0100
  • 5602b95d70 Added .call_limited() to EventHook to avoid having a kwarg outside of **kwargs in .call() jesopo 2018-08-28 16:04:35 +0100
  • 4922ee8f4a Allow users to see their internal IDs and channel IDs jesopo 2018-08-28 15:33:56 +0100
  • f8a6aa087b Save when a user sends their "first" words (won't be correct for old users) jesopo 2018-08-28 15:33:18 +0100
  • 527d548743 Seperate .waiting_send() and throttle logic jesopo 2018-08-28 15:32:50 +0100
  • 9a78dabcc2 80 cols! jesopo 2018-08-28 15:15:04 +0100
  • ab543022c4 Improve IRCServer.Server's __repr__ jesopo 2018-08-28 15:14:41 +0100
  • f2b2ac52e7 Send a PONG event, use the right arg when sending a WHO jesopo 2018-08-28 15:14:22 +0100
  • 0ff36444d4 expand kwargs in assure_call when we've got a hook jesopo 2018-08-28 15:13:56 +0100
  • b2259c2ea8 Added !channelsetoverride in set.py jesopo 2018-08-28 14:55:57 +0100
  • b62cd4be84 .log -> .buffer, i missed this one! jesopo 2018-08-28 14:55:35 +0100
  • b699c120a0 Change how specific events assure their hooks gets the event independant of loading order jesopo 2018-08-28 14:55:08 +0100
  • ef16817ad5 Switch to time.monotonic for comparisons, only send data at most once every .5 seconds and only send max 512 bytes at a time jesopo 2018-08-28 14:36:16 +0100
  • 1b8c663c1a Made "you need to be authenticated" message more helpful jesopo 2018-08-28 12:48:08 +0100
  • 5aa73cd64b Only allow users to send coins to users that have had coins before jesopo 2018-08-28 12:45:42 +0100