Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/researchstudio-sat/won-randomsimulatorbot
WoN Bot simulating user behavior
https://github.com/researchstudio-sat/won-randomsimulatorbot
bot won-bot
Last synced: 3 days ago
JSON representation
WoN Bot simulating user behavior
- Host: GitHub
- URL: https://github.com/researchstudio-sat/won-randomsimulatorbot
- Owner: researchstudio-sat
- License: apache-2.0
- Created: 2019-09-16T10:56:15.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-20T20:33:06.000Z (about 3 years ago)
- Last Synced: 2024-10-31T04:03:53.204Z (14 days ago)
- Topics: bot, won-bot
- Language: Java
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# won-randomsimulatorbot
This Bot creates new Atoms using TTL files in a specified folder as templates. If contacted with Hints or Connects, it randomly establishes some connections while denying others. It will, at random either respond to incoming messages in these connections or close them again. All its actions have a random delay within a few seconds. After receiving a connection message it may choose to validate the connection data.
## Running the bot
### Prerequisites
- [Java 8 JDK](https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) or higher installed (openJDK 12 is currently not supported and won't work)
- Maven framework set up### On the command line
```
cd won-randomsimulatorbot
export WON_NODE_URI="https://hackathonnode.matchat.org/won"
export ATOM_TEMPLATE_DIR="src/main/resources/atom-templates"
mvn clean package
java -jar target/bot.jar
```
Note: this only works if you have the bouncycastle libraries installed for your java installation. If you don't have that, the following line will start the bot```
#(assuming you ran the code above, so you have the environment variables set)
java -cp "target/bot.jar;target/bouncycastle-libs/bcpkix-jdk15on-1.52.jar;target/bouncycastle-libs/bcprov-jdk15on-1.52.jar" won.bot.randomsimulatorbot.RandomSimulatorBotApp
```
This code works on windows. Replace the `;`s with `:`s to run it under Unix.