This script updates the avatar of a Discord bot. It uses the fs, node-fetch, and readline modules.
fs: This module is used to interact with the file system in your machine. In this script, it's used to read the avatar file.node-fetch: This module is used to make HTTP requests. It's used to send a PATCH request to the Discord API to update the bot's avatar.readline: This module is used to read input from the console. It's used to get the bot token from the user.
- Make sure you have Node.js installed on your machine.
- Install the dependencies by running
npm install fs node-fetch readline. - make sure to name it
avatar.gif( unless you know what your doing ) - Run the script using
node index.js. - When prompted, enter your Discord bot token.
Designed to update your bot avatar with any GIF ( this was made when it first came out ) .