# Fortnite: Save the World Daily Rewards Discord Bot
This is a Discord bot that will collect your daily rewards and research points.
## How to use the bot
### @STW Daily {command} method
To interact with STW Daily, start your message by mentioning the bot (STW Daily), followed by the command you wish to use. For example, to authenticate and claim a daily reward, you will now run `@STW Daily d {code}`, instead of `stw d {code}`. Please note the space between the mention and the command.
You can learn more about all the new features and interactions STW Daily can provide by using `@STW Daily help`.
### / Slash command method
To get started with slash commands, start by typing `/`. You can learn more about slash commands [here](https://discord.com/blog/slash-commands-are-here).
How to get a code
---
To get an auth code [visit this website](https://www.epicgames.com/id/logout?redirectUrl=https%3A%2F%2Fwww.epicgames.com%2Fid%2Flogin%3FredirectUrl%3Dhttps%253A%252F%252Fwww.epicgames.com%252Fid%252Fapi%252Fredirect%253FclientId%253Dec684b8c687f479fadea3cb2ad83f5c6%2526responseType%253Dcode) and sign in with your Epic Games account.
You will then be taken to an empty webpage, with your authcode being displayed at the top left.
```js
{"redirectUrl":"https://accounts.epicgames.com/fnauth?code=a51c1f4d35b1457c8e34a1f6026faa35","authorizationCode":"a51c1f4d35b1457c8e34a1f6026faa35","sid":null}
```
Copy only the authorisation code (you can double-click it in most browsers), and then add that to your command.
``@STW Daily d a51c1f4d35b1457c8e34a1f6026faa35``
The auth code will expire shortly after issued, and if used by STW Daily, will immediately expire. If you require a new code, you can simply [refresh the page](https://www.epicgames.com/id/api/redirect?clientId=ec684b8c687f479fadea3cb2ad83f5c6&responseType=code) to get a new code.
**NEW** in STW Daily: Authentication Sessions! Your authentication session will be saved for ~8 hours, allowing you to claim a daily, claim your research points and spend them without needing a new code each time. You will still need to provide a new code when the authentication session expires. You can opt out of automatically starting an authentication session by specifying any text after your auth code, e.g. `@STW Daily d a51c1f4d35b1457c8e34a1f6026faa35 no`. You can end an authentication session with `@STW Daily kill`