Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/researchstudio-sat/spoco-edenred-bot
https://github.com/researchstudio-sat/spoco-edenred-bot
bot won-bot
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/researchstudio-sat/spoco-edenred-bot
- Owner: researchstudio-sat
- License: apache-2.0
- Created: 2019-11-28T10:49:10.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T03:28:21.000Z (almost 2 years ago)
- Last Synced: 2024-03-26T12:30:45.117Z (8 months ago)
- Topics: bot, won-bot
- Language: Java
- Size: 244 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Web of Needs Bot Skeleton
<<<<<<< HEAD
This skeleton contains an echo bot that reacts to each new atom created on a given node. For each atom, the bot sends a configurable number of contact requests (default is 3) that can be accepted by the user. Within the established chat, the bot echoes all sent messages.> **NOTE:** Be careful with running more than one bot on a given node instance, as multiple bots may get into infinite loops.
The echo bot is a [Spring Boot Application](https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-running-your-application.html).
=======
This skeleton contains a bot that creates a Service Atom that one can connect to.
For each atom that has been created on the configured node(s), the bot sends a message with the atomUri of the created Atom to everyone that is connected to the Service Atom.The Bot Skeleton is a [Spring Boot Application](https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-running-your-application.html).
>>>>>>> bot-skeleton/master## Running the bot
### Prerequisites
<<<<<<< HEAD
- [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)
=======
- [Openjdk 8](https://adoptopenjdk.net/index.html) - the method described here does **not work** with the Oracle 8 JDK!
>>>>>>> bot-skeleton/master
- Maven framework set up### On the command line
```
cd bot-skeleton
export WON_NODE_URI="https://hackathonnode.matchat.org/won"
mvn clean package
java -jar target/bot.jar
```
<<<<<<< HEAD
Now [create an atom](https://hackathon.matchat.org/owner/#!/create) to see the bot in action.
=======
Now go to [What's new](https://hackathon.matchat.org/owner/#!/overview) to find your bot, connect and [create an atom](https://hackathon.matchat.org/owner/#!/create) to see the bot in action.
>>>>>>> bot-skeleton/master### In Intellij Idea
1. Create a run configuration for the class `won.bot.skeleton.SkeletonBotApp`
2. Add the environment variables* `WON_NODE_URI` pointing to your node uri (e.g. `https://hackathonnode.matchat.org/won` without quotes)
to your run configuration.
3. Run your configurationIf you get a message indicating your keysize is restricted on startup (`JCE unlimited strength encryption policy is not enabled, WoN applications will not work. Please consult the setup guide.`), refer to [Enabling Unlimited Strength Jurisdiction Policy](https://github.com/open-eid/cdoc4j/wiki/Enabling-Unlimited-Strength-Jurisdiction-Policy) to increase the allowed key size.
##### Optional Parameters for both Run Configurations:
- `WON_KEYSTORE_DIR` path to folder where `bot-keys.jks` and `owner-trusted-certs.jks` are stored (needs write access and folder must exist)<<<<<<< HEAD
Now [create an atom](https://hackathon.matchat.org/owner/#!/create) to see the bot in action.=======
>>>>>>> bot-skeleton/master
## Start codingOnce the skeleton bot is running, you can use it as a base for implementing your own application.
<<<<<<< HEAD
### 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)
- Java IDE of choice set up
- Maven framework set up=======
>>>>>>> bot-skeleton/master
## Setting up
- Download or clone this repository
- Add config filesPlease refer to the general [Bot Readme](https://github.com/researchstudio-sat/webofneeds/blob/master/webofneeds/won-bot/README.md) for more information on Web of Needs Bot applications.