From 37e4c5c8d7e46222942651fa670b960798484fcb Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 16 Jul 2024 11:25:19 -0400 Subject: [PATCH] Clean up --- README.md | 4 ++++ src/bot.rs | 14 ++++---------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index da552e8..dd5083a 100644 --- a/README.md +++ b/README.md @@ -136,3 +136,7 @@ podman build . -t trade_bot Then follow the [above](#running) steps with the tag "trade_bot" instead of "git.jeffa.io/jeff/trade_bot". + +## License + +This project is licensed under the GPL-3.0 license. See the [LICENSE](LICENSE) file for details. diff --git a/src/bot.rs b/src/bot.rs index 9ad47cc..e4e6c73 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -1,12 +1,6 @@ -/** -A bot that buys, sells and trades with players. - -This bot is designed to run on the official Veloren server. It will connect to the server, select -a character, and then attempt to buy, sell, and trade with other players. The bot will also -announce its presence and respond to chat messages. - -See [main.rs] for an example of how to run this bot. -**/ +/// A bot that buys, sells and trades with players. +/// +/// See [main.rs] for an example of how to run this bot. use std::{ borrow::Cow, sync::Arc, @@ -128,7 +122,7 @@ impl Bot { } let position = if let Some(coords) = position { - Pos([coords[0], coords[1], coords[2]].into()) + Pos(coords.into()) } else { client .position()