Skip to content

Discord bot shortens URLs with TinyURL API, features slash commands "/shorten" and "/help", auto-posts on Infinity Bot List.

Notifications You must be signed in to change notification settings

daveonHMD/Discord-URL-Shortener-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord URL Shortener Bot

This is a simple Discord bot that can shorten URLs using the TinyURL API. It also has a help command that provides instructions on how to use the /shorten command.

Installation

  1. Clone the repository: git clone https://github.com/daveonHMD/discord-url-shortener-bot.git
  2. Navigate to the project directory: cd discord-url-shortener-bot
  3. Install the dependencies: npm install
  4. Rename .env.example to .env and add your Discord bot token and Infinity Bots API token.
  5. Start the bot: node index.js

Usage

  1. Invite the bot to your Discord server using your bot client ID
  2. Use the /shorten command to shorten a URL: /shorten <url>. Example: /shorten example.com (do not add https://)
  3. Use the /help command to get help with the /shorten command: /help

Dependencies

About

Discord bot shortens URLs with TinyURL API, features slash commands "/shorten" and "/help", auto-posts on Infinity Bot List.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published