Clean up
This commit is contained in:
parent
6bfce870af
commit
37e4c5c8d7
@ -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.
|
||||
|
14
src/bot.rs
14
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()
|
||||
|
Loading…
Reference in New Issue
Block a user