The official source code of the Discord Bot STW Daily, which can claim your STW daily reward. It is an adaptation of this repository by Londiuh.
Either join the server or invite the bot to your own server, and run the commands you want. You can even do it in DMs with the bot if you want (but you need a mutual server with it).
- Clone the repo
- Install the dependencies below
- Add token for your bot as an environment variable for "STW_DAILY_TOKEN"
- Invite your bot to your server
- Run "daily core.py"
Super easy 1-click hosting method
You can read some commonly asked questions about the bot on the STW Daily website
- Python 3 (Tested with 3.10.6)
- py-cord >= 2.1.1
- aiohttp < 3.9, >= 3.6.0
- psutil >= 5.9.1
- Only used in the "info" command. It is not essential to the functionality of the bot and can/should be removed; but you need to remove the code that uses it yourself.
- An Epic Games account with campaign access (Fortnite: Save the world)
You can install the required dependencies with:
pip install -r requirements.txt
Set your bot token as the value for the environment variable "STW_DAILY_TOKEN", then run "daily core.py"
If you don't know what a bot token is or need one, you can create an application on discord, then create a bot and copy it's token.
Alternatively, you can Use my publicly one hosted on heroku here.
You can also join my server if you would prefer to use the bot that way.
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
.
To get started with slash commands, start by typing /
. You can learn more about slash commands here.
To get an auth code visit this website 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.
{"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 to get a new code.
NEW in STW Daily beta: 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
If you require assistance, just want to chat, or would prefer to use the bot in a different server to your own, you can join the STW Daily discord. Feel free to reach out directly to us via the server.
Londiuh for their code to collect daily rewards
Icons by dippyshere ;)
A valid auth token can be used maliciously, even though it expires when used, be careful, if you would like, you can read more here