Skip to content

Commit

Permalink
Remove Prefix Option (#304)
Browse files Browse the repository at this point in the history
* Use LF for some files

* Update deps

* Remove prefix config options

* Update deb config template
  • Loading branch information
adumbidiot authored Apr 10, 2024
1 parent 9fa9f37 commit 9eeebb3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 17 deletions.
5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
*.txt eol=lf
*.txt eol=lf
*.rs eol=lf
*.toml eol=lf
*.lock eol=lf
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions deb-config.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# Fill out this field with your token
# token = "[TOKEN]"

# Put your desired bot prefix here
prefix = "~"

[twitter]
# Put your bearer token here
# bearer_token = "[BEARER_TOKEN]"

# The log config
[log]
# The log file destination
Expand Down
3 changes: 0 additions & 3 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ use serde::Deserialize;
/// The bot config
#[derive(Deserialize, Debug)]
pub struct Config {
/// The bot prefix
pub prefix: String,

/// The bot token
pub token: String,

Expand Down
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,6 @@ fn main() -> anyhow::Result<()> {
}

async fn async_main(config: Config) -> anyhow::Result<()> {
info!("Using prefix \"{}\"", config.prefix);

// Init Framework
let framework = poise::Framework::builder()
.options(poise::FrameworkOptions {
Expand Down

0 comments on commit 9eeebb3

Please sign in to comment.