Code Monkey home page Code Monkey logo

dictbot's Introduction

dictBot

discord bot for resolving acronyms and defining search terms.

Type: Discord-Bot

Whats new

This bot supports slash commands and now also adopted dictionary.com This allows users to search definitions of words within the Discord chat.

Also creates a log of used commands for analysis purposes. Feel free to remove the write_log function and related calls if desired.

Description:

Search acronym meanings and search definitions of words/terms/etc within discord chat. This application uses www.acronymfinder.com, www.wikipedia.org, and www.dictionary.com respectively.

Notes:

Quite reliable and decent speed. Uses the python Requests and BeautifulSoup libraries to scrape the relevant data from the site corospnding to the search.

Notice that Discord has a limit of 2000 characters in bot responses. Therefore any output generated that exceeds this limit will be truncated. The URL of the given response will be included with the output for all queries to allow users to easily navigate to and explore responses to the fullest extent if needed.

This is not meant to be downloaded form git as an application in whole, but rather to make the source code public. However, you are welcome to do so. Token not included. To run this bot as your own, you will need to create a Discord bot linked to your account at https://discord.com/developers/applications to recieve a valid bot login token. That token will need to be saved inside the .env file as TOKEN=YOUR_TOKEN which has already been created for you. You just need to edit the file when you recieve a valid token.

NEVER SHARE YOUR LOGIN TOKENS WITH ANYONE!

I may start running these bots on a dedicated instance and make them available to invite to your server in the near future. Stay tuned for future implementations.

Images:

  • /dictbot-help

image

  • /acronym-finder

image

  • /wiki

image

  • /dictionary

image

dictbot's People

Contributors

node0o1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.