diff options
| author | Jokler <jokler@protonmail.com> | 2020-01-28 17:52:21 +0100 |
|---|---|---|
| committer | Jokler <jokler@protonmail.com> | 2020-01-29 20:39:27 +0100 |
| commit | 1e00d60298697e7443f66ad7a63bc0492bb8072f (patch) | |
| tree | 5b07c04fbc216b710c91f4397febecb96ec4ed96 | |
| parent | 985d6bd787c07ea65804d5c079537fb8d805075f (diff) | |
| download | pokebot-1e00d60298697e7443f66ad7a63bc0492bb8072f.tar.gz pokebot-1e00d60298697e7443f66ad7a63bc0492bb8072f.zip | |
Add config example file
| -rw-r--r-- | config.toml.example | 18 | ||||
| -rw-r--r-- | src/main.rs | 17 |
2 files changed, 18 insertions, 17 deletions
diff --git a/config.toml.example b/config.toml.example new file mode 100644 index 0000000..c2fbc73 --- /dev/null +++ b/config.toml.example @@ -0,0 +1,18 @@ +# Name of the master bot +name = "PokeBot" +# Address of the server to connect to +address = "localhost" +# Channel for the master bot +channel = "Lobby" + +# Names for the music bots +names = ["MusicBot"] + +# Identity of the master bot +[id] +key = "insert-key-here" +counter = 0 +max_counter = 0 + +# Add identities for music bots here +# [[ids]] diff --git a/src/main.rs b/src/main.rs index d24b6b6..7f6fbf4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,23 +61,6 @@ pub struct Args { } fn main() { - //let ids = vec![Identity::create().unwrap()]; - //println!( - //"{}", - //toml::to_string(&MasterArgs { - //master_name: String::from("PokeBot"), - //id: Identity::create().unwrap(), - //names: vec![String::from("test")], - //address: String::from("localhost"), - //channel: Some(String::from("Poke If Needed")), - //local: false, - //verbose: 0, - //ids, - //}) - //.map_err(|e| panic!(e.to_string())) - //.unwrap() - //); - //panic!(); if let Err(e) = run() { println!("Error: {}", e); } |
