Skip to content

Discord bot and http api for toggling the status of ALIAS office

License

Notifications You must be signed in to change notification settings

alias-asso/office-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALIAS's status reporter office bot

What is this?

A simple discord bot to set the online status info of ALIAS office in Sorbonne Université, Paris.

Staff-facing usage

This is a Go program, so a Go toolchain is required

Make a new Discord bot on their developer portal and obtain its token.

Create a webhook in the channel of your choice and note its id and token.

You have to create the toml config file (default path /etc/office-bot/config.toml) with the following values:

bot-token = ""
status-file-path = ""
server-port = ""
password-hash = ""
toggle-roles = [ # a list of discord roles IDs
  "", # role1
	"",  # role2
  ""   # ...
]
webhook-id = ""
webhook-token = ""

If you want to use a different path, you can specify it with the -config flag.

This is currently a work in progress! Contributions are welcome in any case after discussion on our Discord server

About

Discord bot and http api for toggling the status of ALIAS office

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages