# Discobot pour l'entraînement

**URL:** <https://meta.discourse.org/t/discobot-for-training/81316>\
**Category:** Development\
**Tags:** discobot\
**Created:** [Février 23, 2018, 3:35 UTC](https://meta.discourse.org/t/discobot-for-training/81316 "2018-02-23T15:35:44Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![featheredtoast](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/featheredtoast/32/116994_2.png) [@featheredtoast](https://meta.discourse.org/u/featheredtoast)\
**Post date:** [Février 26, 2018, 7:55 UTC](https://meta.discourse.org/t/discobot-for-training/81316/16 "2018-02-26T19:55:41Z")

</div>

Those are set from environment variables, which can be set in a number of ways. The simplest of which is editing your bin/hubot and adding:

```plaintext
export HUBOT_DISCOURSE_USERNAME=myuser
export HUBOT_DISCOURSE_KEY=secret
export HUBOT_DISCOURSE_SERVER=https://discourse.example.com/

```

before the `exec` line.

Bear in mind that the discourse key is a password, and so this file (or any env file) should be treated as secret and kept safe.

---

_[View the full topic](https://meta.discourse.org/t/discobot-for-training/81316)._
