Beowulf-Bot is a Discord bot that gets its namesake from Beowulf, a character from the fighting game Skullgirls (cause he's my favorite, there's really not much thought here).
![Image](https://private-user-images.githubusercontent.com/139060140/309927061-cff59273-d8f6-4b83-815a-114f522cc0f0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NTA3ODcsIm5iZiI6MTczODg1MDQ4NywicGF0aCI6Ii8xMzkwNjAxNDAvMzA5OTI3MDYxLWNmZjU5MjczLWQ4ZjYtNGI4My04MTVhLTExNGY1MjJjYzBmMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQxNDAxMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1lMDU3NjQ3YTNlOTYxZGM0MDNiZWYwMzk3NTlmODEwYjI3YjQxM2ZjMzg1YTliMTk4ZjYzZmM5NmI2NDE3YjQyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.jCo8KOps5vC1dQmJkwcgW8bpiyl27XoSkBnLxKlmTsQ)
!fileinfo
: Displays the folder name, the last file added in it, and when it was last edited.!last
: Shows the last edited folder, indicating the folder with the most recently added file.
![](https://private-user-images.githubusercontent.com/139060140/309930828-11358ee0-f3b3-47c0-8830-8b5103b22e98.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NTA3ODcsIm5iZiI6MTczODg1MDQ4NywicGF0aCI6Ii8xMzkwNjAxNDAvMzA5OTMwODI4LTExMzU4ZWUwLWYzYjMtNDdjMC04ODMwLThiNTEwM2IyMmU5OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQxNDAxMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jMDQ3Y2Q1ZjVjZWRjNWFkN2ZiMTZiNjViZjAyYjNlZmFjNTQ0ZWZhODc2Y2VkN2Q5MTQwNDMyZTFkOGM4ZTZhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.xhBNPlTOfpibtsG3nxVqlLLm4zqEarJfIDDWdl5Oscw)
To use Beowulf Bot and run it from your computer, follow these steps:
-
Set Up Google Cloud Project:
- Create a project in the Google Cloud Console.
- Obtain the
clientId
andclientSecret
for authentication.
-
Configure Discord Bot:
- Create a Discord bot account and obtain the bot token.
- Invite the bot to your Discord server.
-
Configuration:
- Clone the repository and navigate to the project directory.
- Add the Google Drive folder IDs, Discord bot token,
clientId
, andclientSecret
to the appropriate configuration files.
-
Running the Bot:
- Start the bot using
node Beowulf-code.js
while being in the same directory.
- Start the bot using
-
Setting it up:
- While it is running, go to
http://localhost:3000
in your browser, connect it with the account that contains the project. - The token should be initialized and now will not need any interference.
- While it is running, go to
-
Interacting with the Bot:
- Use the
!fileinfo
and!last
commands in Discord to retrieve file status updates. - Other available commands include
!refreshtoken
, which manually refreshes the token incase something goes wrong.
- Use the
![](https://private-user-images.githubusercontent.com/139060140/309929405-ffcd91fd-a375-416a-8446-8d8afb0fa610.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NTA3ODcsIm5iZiI6MTczODg1MDQ4NywicGF0aCI6Ii8xMzkwNjAxNDAvMzA5OTI5NDA1LWZmY2Q5MWZkLWEzNzUtNDE2YS04NDQ2LThkOGFmYjBmYTYxMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQxNDAxMjdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMmIxM2VhYjdlYTljZjlhYTEzNGY0ZGQwY2E0ZjMzMmQ3NWNjZWE1YjVkMjcwNzFlMzc2MjhmOGYzMTNlM2E0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.iCp-Fb4muSwvnmMElmsqUWtsusK1GIfIIh_N3IxQ6rI)
In order to run Beowulf, you need to provide the following configurations:
- Google Drive Folder IDs: Specify the folder IDs for the folders you want to monitor.
- Discord Bot Token: Token obtained from Discord for your bot account.
- Google Cloud Project Credentials:
clientId
: Client ID obtained from the Google Cloud Console.clientSecret
: Client secret obtained from the Google Cloud Console.
Contributions are welcome! If you have any ideas, suggestions, or improvements, feel free to submit a pull request or open an issue.
This project is licensed under the MIT License.
Disclaimer: Beowulf-Bot is a fan-made project and is not affiliated with or endorsed by Skullgirls or its developers.