项目作者: bmstefanski

项目描述 :
Discord all-purpose bot, made using Spring Boot, JPA, Hibernate, REST, HikariCP. Written for fun, do not take this serious.
高级语言: Java
项目地址: git://github.com/bmstefanski/spring-discord-bot.git
创建时间: 2018-06-06T11:07:22Z
项目社区:https://github.com/bmstefanski/spring-discord-bot

开源协议:The Unlicense

下载


Friendly Garbanzo

Discord all-purpose bot, made using Spring Boot, JPA, Hibernate, REST, HikariCP. Written for fun, do not take this serious

Services

Type Badges
Code quality: maintability-icon
Continuous Integration: travis-icon appveyor-icon

Endpoints

Method Optional query parameters Success status codes Error status codes
GET /api/users page, size 200
GET /api/users/by-id/{id} 200 404
GET /api/users/by-name/{name} 200 404

Features

  • Storing all user’s data to mysql database
  • Public rest api without oauth
  • Github command, that shows infos about your github profile
  • Commit command - displays commits’ count
  • Say command, that talks in json

Configuration

Create file named application.properties in your resource directory, with the following content:

  1. # DATA SOURCE
  2. spring.datasource.url=jdbc:mysql://localhost:3306/garbanzo
  3. spring.datasource.username=root
  4. spring.datasource.password=root
  5. # JPA HIBERNATE
  6. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect
  7. spring.jpa.properties.hibernate.format_sql=true
  8. spring.jpa.hibernate.use-new-id-generator-mappings=false
  9. spring.jpa.open-in-view=false
  10. # I18N
  11. spring.messages.basename=locale/messages
  12. spring.messages.encoding=UTF-8
  13. spring.messages.fallback-to-system-locale=true
  14. # JDA
  15. jda.discord.token=your discord key
  16. # JACKSON
  17. spring.jackson.serialization.indent_output=true

Contributing

  • fork it
  • create your own branch, like so: command/xx/8ball, where xx are your initials.
  • commit and push your changes
  • create pull request
  • wait for the review

The first rule, the only rule, is that you need use Google Code Style

License

See the License file.