A bot named Duga for chat rooms on the Stack Exchange network. Responsibilities include:
This is obsolete and duga-ktor
should be used instead.
In the directory grails-app/conf
, create a file named duga.groovy
// Configurations for the bot's Stack Exchange account:
rootUrl = 'https://stackexchange.com'
email = 'your@email.com'
password = 'yourpassword'
// API configuration
stackAPI = 'xxxxxxxxx'
githubAPI = 'xxxxxxxxx'
commandPrefix = '@Duga ' // chat messages that begins with this will be considered as commands
// Database configuration
adminDefaultPass = 'xxxxxxxxx' // default password for username 'admin'
dataSource {
username = 'xxxxxxxxx'
password = 'xxxxxxxxx'
}
Also see the bottom part of grails-app/conf/application.groovy
for more database configuration options.
In order to run a StackExchange account as a chat bot, you need to follow the following steps:
To build the project and run all tests:
./gradlew build