Skip to content

Commit 3592c7b

Browse files
committed
Merge branch 'dev'
2 parents 237f6eb + a92e622 commit 3592c7b

37 files changed

Lines changed: 3693 additions & 1466 deletions

File tree

Cargo.lock

Lines changed: 1230 additions & 603 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "frippy"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
authors = ["Jokler <jokler.contact@gmail.com>"]
55
repository = "https://github.com/Mavulp/frippy"
66
readme = "README.md"
@@ -16,48 +16,44 @@ doc = false
1616
[features]
1717
mysql = [
1818
"diesel",
19-
"diesel_infer_schema",
2019
"diesel_migrations",
21-
"dotenv",
2220
"r2d2",
2321
"r2d2-diesel"
2422
]
2523

2624
[dependencies]
27-
irc = "0.13.4"
28-
log = "0.4.1"
29-
time = "0.1.39"
30-
humantime = "1.1.0"
31-
rlua = "0.12.2"
32-
reqwest = "0.8.5"
33-
regex = "0.2.6"
34-
lazy_static = "1.0.0"
35-
serde = "1.0.27"
36-
serde_json = "1.0.9"
37-
chrono = "0.4.0"
25+
irc = "0.13.6"
26+
log = "0.4.5"
27+
time = "0.1.40"
28+
humantime = "1.1.1"
29+
rlua = "0.14.2"
30+
reqwest = "0.9.0"
31+
regex = "1.0.5"
32+
lazy_static = "1.1.0"
33+
serde = "1.0.79"
34+
serde_json = "1.0.27"
35+
chrono = "0.4.6"
3836
glob = "0.2.11"
39-
failure = "0.1.1"
37+
circular-queue = "0.2.0"
38+
failure = "0.1.2"
39+
htmlescape = "0.3.1"
40+
antidote = "1.0.0"
41+
log4rs = "0.8.0"
4042

4143
frippy_derive = { path = "frippy_derive" }
42-
htmlescape = "0.3.1"
44+
rand = "0.5.5"
4345

4446
[dependencies.unicode_names]
4547
git = 'https://github.com/Jokler/unicode_names'
4648
branch = 'update-to-latest-unicode'
4749

48-
4950
[dependencies.diesel]
50-
version = "1.1.1"
51+
version = "1.3.3"
5152
optional = true
5253
features = ["mysql", "chrono"]
5354

54-
[dependencies.diesel_infer_schema]
55-
version = "1.1.0"
56-
optional = true
57-
features = ["mysql"]
58-
5955
[dependencies.diesel_migrations]
60-
version = "1.1.0"
56+
version = "1.3.0"
6157
optional = true
6258
features = ["mysql"]
6359

@@ -69,10 +65,6 @@ optional = true
6965
version = "1.0.0"
7066
optional = true
7167

72-
[dependencies.dotenv]
73-
version = "0.11.0"
74-
optional = true
75-
7668
[dependencies.clippy]
77-
version = "*"
69+
version = "0.0.212"
7870
optional = true

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017 Mavulp
3+
Copyright (c) 2018 Mavulp
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# frippy [![Build Status](https://travis-ci.org/Mavulp/frippy.svg?branch=master)](https://travis-ci.org/Mavulp/frippy)
2-
Frippy is an IRC bot which is splits its functions into plugins.
2+
Frippy is an IRC bot which is splits its functionality into plugins.
33
Currently it has plugins to:
44

5-
* Send the names of emojis used
6-
* Convert currencies with the help of [fixer.io](https://fixer.io/)
7-
* Send the titles of HTML pages linked
5+
* Get unicode information about characters
6+
* Send the titles of HTML pages linked
87
* Create factoids with Lua support
9-
* Send messages to offline users when they join again
8+
* Store messages intended for offline users
109
* Automatically change nickname when it is available again
1110

1211
Check the config.toml file to get an idea of how to set the bot up.

configs/config.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ encoding = "UTF-8"
1212
channels = ["#frippy"]
1313
umodes = "+B"
1414
user_info = "IRC Bot"
15-
version = "frippy v0.4.0"
15+
version = "frippy v0.5.0"
1616
source = "https://github.com/Mavulp/frippy"
1717
#ping_time = 180
1818
#ping_timeout = 10
@@ -25,6 +25,7 @@ source = "https://github.com/Mavulp/frippy"
2525
#"#frippy" = ""
2626

2727
[options]
28+
#prefix = "."
2829
#disabled_plugins = "Url"
2930
# If no database url is set a HashMap is used
3031
#mysql_url = "mysql://user:password@address/db"

frippy_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ proc-macro = true
99
[dependencies]
1010
syn = "0.12.13"
1111
quote = "0.4.2"
12-
failure = "0.1.1"
12+
failure = "0.1.2"

frippy_derive/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ fn expand_plugin(ast: &syn::DeriveInput) -> quote::Tokens {
3434
pub fn derive_error(data: TokenStream) -> TokenStream {
3535
let ast = syn::parse(data).unwrap();
3636
let tokens = expand_error(&ast);
37-
// panic!("{}", tokens.to_string());
3837
tokens.into()
3938
}
4039

log.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Read https://docs.rs/log4rs/0.8.0/log4rs/file/index.html for more information on how to use this file
2+
refresh_rate: 5 minutes
3+
4+
appenders:
5+
stdout:
6+
kind: console
7+
encoder:
8+
kind: pattern
9+
pattern: "[{d:35}](({h({l})})) {t} - {m}{n}"
10+
11+
loggers:
12+
frippy:
13+
level: info
14+
appenders:
15+
- stdout
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DROP TABLE events
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CREATE TABLE events (
2+
id SERIAL PRIMARY KEY,
3+
receiver VARCHAR(32) NOT NULL,
4+
content TEXT NOT NULL,
5+
author VARCHAR(32) NOT NULL,
6+
time TIMESTAMP NOT NULL,
7+
`repeat` BIGINT UNSIGNED NULL
8+
)

0 commit comments

Comments
 (0)