This commit is contained in:
Jeff 2024-07-16 11:25:19 -04:00
parent 6bfce870af
commit 37e4c5c8d7
2 changed files with 8 additions and 10 deletions

View File

@ -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.

View File

@ -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()