Coder Social home page Coder Social logo

dwarflindeveloping / linker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 142 KB

Linker is a Discord Bot written in Python using discord.py (https://github.com/Rapptz/discord.py), which makes it possible to send links in a very short time.

License: MIT License

Python 99.72% Shell 0.28%
wiki discord python python3 discord-py bot link linker linking discord-py-bot discord-python discord-python-bot gamepedia fandom wikipedia forums dwarfprime wikis links

linker's Introduction

This project is currently NOT under development! Core features may be corrupted or missing! We are currently not providing any support on this software!

In other languages: Deutsch

About Linker

Linker is a bot programmed in Python which makes it possible to send links in a very short time.

General functions

When a word is bracketed with "{" and "}", the bot generates a link completely automatically and sends it below the message.
This is generated from the default URL set for the Discord server.
A default URL consists of the base URL and the variable %ARTICLE%. The variable is replaced by the search term entered between the curly brackets during a search. For example, if you set the URL to https://minecraft.fandom.com/wiki/%ARTICLE%, all searches will be made on the English Minecraft wiki.

By adding a "$" at the beginning of a word, it is possible to display quick information from the website. However, some websites have this feature disabled, so this is usually only possible in wikis and forums.

It is also possible to use a different URL than the default URL. For this, separate the search word and the base URL with a ":" from each other. Everything before the colon is the base URL.

It is also possible to use a template as the base URL. For instance minecraft-en refers to the English Minecraft wiki. Here are all of these templates listed:

templates

minecraft-<WIKINAME> - https://minecraft.fandom.com/<WIKINAME>/wiki/%ARTICLE%
wikipedia-<WIKINAME> - https://<WIKINAME>.wikipedia.org/wiki/%ARTICLE%
fandom-<WIKINAME> - https://<WIKINAME>.fandom.com/wiki/%ARTICLE%
gamepedia-<WIKINAME> - https://<WIKINAME>.gamepedia.com/%ARTICLE%

youtube - https://www.youtube.com/%ARTICLE%
twitch - https://www.twitch.tv/%ARTICLE%

commands

%guildfamily
%guildfamily get - Outputs the default url from this guild
%guildfamily set <url> - Sets the guild's default url to the given url
%guildfamily clear - Clears the default url of the guild

%userfamily
%userfamily get - Outputs your default url
%userfamily set <url> - Sets your default url to the given url
%userfamily clear - Clears your default url

%guildwords
%guildwords get - Outputs the guilds custom words
%guildwords set <word> <url> - Adds the given word to the guilds custom words
%guildwords rem <word> - Removes the given word from the guilds custom words
%guildwords clear - Clears the guilds custom words

%userwords
%userwords get - Outputs your custom words
%userwords set <word> <url> - Adds the given word to your custom words
%userwords rem <word> - Removes the given word from your custom words
%userwords clear - Clears your custom words

command use

%guildfamily set
When using this command it is possible to set the default URL of the server. It is necessary to include the variable %ARTICLE% in this URL. In case of a search, %ARTICLE% will be replaced by the search term entered between the curly brackets. If you do not want to build the URL yourself, you can also use the templates (see Templates).

Here the principle will be explained based on the Emglish Minecraft Wiki:
. • If you use a template, the command will look like this: %guildfamily set minecraft-en
. • If you want to compose it yourself, however, like this: %guildfamily set https://en.wikipedia.org/wiki/%ARTICLE

This principle can be applied to almost all Wikis, forums and most websites.

%userfamily set
This command is practically the same as %guildfamily with the difference that the default url of the guild is not set, but that of the user. Templates can be used here as well.

%guildwords
If this command is used, the custom words of the guild can be viewed and managed.
Custom words are words that output a custom url when searched.

%userwords
This command is practically the same as %guildwords with the difference that the default url of the guild is not set, but that of the user. Templates can be used here as well.

linker's People

Contributors

dertev avatar dwarflindeveloping avatar

Stargazers

 avatar

Watchers

 avatar

linker's Issues

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.