From 1e00d60298697e7443f66ad7a63bc0492bb8072f Mon Sep 17 00:00:00 2001 From: Jokler Date: Tue, 28 Jan 2020 17:52:21 +0100 Subject: Add config example file --- config.toml.example | 18 ++++++++++++++++++ src/main.rs | 17 ----------------- 2 files changed, 18 insertions(+), 17 deletions(-) create mode 100644 config.toml.example 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); } -- cgit v1.2.3-70-g09d2