Skip to content

Commit

Permalink
✅feat(plugins): added example plugins
Browse files Browse the repository at this point in the history
❎feat!(submodule): removed submodule for plugins
  • Loading branch information
ascpial committed Oct 16, 2022
1 parent 1439613 commit b3f4f43
Show file tree
Hide file tree
Showing 17 changed files with 3,331 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

19 changes: 19 additions & 0 deletions plugins/misc/docs/user_documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Misc

## **Distribute Cookies**

You can distribute or request cookies via the command: `/cookie <Member>`. A villager will then take a cookie to the specified member. If you do not specify the member, the villager will give you the cookie.

## **Toss a coin**

Ever wanted to throw a coin but because you're poor you never had a coin on hand? We have solved this problem by adding the `/flipacoin` command which will flip a coin for you and tell you the result. Note that there is a non-zero chance that the coin will fall on its side, we have pushed the realism to the limit.

## **Hoster**

Enter the `hoster` command to get information about the bot's host.

## **Don't ask to ask, just ask.**

> It is often said that the best weapon is the one you don't have to use. I don't agree. In my opinion, the best weapon is the one you only have to use once." - Tony Stark
Are you tired of people asking if there are people to answer a question without saying what the question is? Well, so are we! After extensive research we have developed a formidable weapon in the form of a simple command that makes these people realize that it is better to ask a question directly than to make unnecessary detours that waste everyone's time. This command is `/dataja`, to be handled with the utmost care.
75 changes: 75 additions & 0 deletions plugins/misc/langs/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
en:
misc:
dice:
title: "The dice are thrown!"
description: "The result is: %{value}"
error:
not_int: "The value must be an integer"
not_positive: "The value must be positive"
cookie:
give: "Here is for you %{to}: :cookie:\nFrom %{giver}"
self: "Here is for you %{to}: :cookie:"
hoster:
info: "Game server hosting service\n:speech_balloon: [Discord server](https://mtxserv.com/discord?utm_source=altearn_website_discord&utm_medium=website&utm_campaign=altearn_to_discord)\n:globe_with_meridians: [Website](https://mtxserv.com/fr/?utm_source=altearn_website&utm_medium=website&utm_campaign=altearn)"
flipacoin:
title: Pling !
heads: "Heads!"
tails: "Tails!"
side: "Side!"
kills:
"0": "{2}.exe *has stopped working*"
"1": "Oh you, you gonna to die!"
"2": "***BOUM!*** {1} fell into a trap posed by {0}!"
"3": "Luckily, the ground has cushioned the fall of {1}!"
"4": "{0} shouted \"Fus Roh Dah\" while {1} was next to a cliff..."
"5": "No, you can't stop bullets with your hands {1} :shrug:"
"6": "You have to be __in__ the elevator {1}, not __above__..."
"7": "{1} stayed too close to the speakers during a heavy metal concert."
"8": "Staying within 10 meters of an atomic explosion wasn't a good idea {1}..."
"9": "No! Double jumps are not possible {1}!"
"10": "{1} imitated Icare... splash."
"11": "It's nice to have a portal gun {1}, but don't open portals above spades..."
"12": "{1} died. Peace to their soul... :sneezing_face:"
"13": "{0} killed {1}"
"14": "{1} was shot by {0}"
"15": "Bye {1}! :ghost:"
"16": "{1} saw a flying anvil fall... on their head :head_bandage:"
"17": "{1} commit suicide after {0} has cut their connection"
"18": "Caution {1}! Fire burns :fire:"
"19": "{1} fought zombies without shovel"
"20": "{1} tried to hug a creeper"
"21": "{1}, lava baths are hot, but lava burns..."
"22": "{1} tried a rocket jump"
"23": "You shouldn't listen to the pretty melody of the Lullaby, {1} :musical_note:"
dataja:
title: "Don't ask to ask, just ask"
description: "Learn the best practices to ask question:\nhttps://zrunner.me/d-a-t-a/en.html"
timestamp:
read-result: "The date in %{source} is <t:%{timestamp}> (<t:%{timestamp}:R>) (timestamp: %{timestamp})"
not-found: "Date not found in %{source} !"
create-result: "The timestamp for the <t:%{timestamp}:F> is: `%{timestamp}` (Discord timestamp : `<t:%{timestamp}>`)"
help: |
***The timestamp in discord***
*Example : Discord was created <t:1431468000:R>, the <t:1431468000:D>.*
__**Use the timestamp feature**__ :
You needs to get a UNIX timestamp (you can use the `timestamp get` and `timestamp create` commands), then you can use it with the following syntax:
```
<t:[TIMESTAMP]>
```
`[TIMESTAMP]` should be replaced with the timestamp you get.
__**Utiliser les styles**__ :
You can also style the timestamp using this syntax :
```
<t:[TIMESTAMP]:[STYLE]>
```
`[STYLE]` should be replaced by one of the following values:
• `t` (<t:1431468000:t>)
• `T` (<t:1431468000:T>)
• `d` (<t:1431468000:d>)
• `D` (<t:1431468000:D>)
• `f` (<t:1431468000:f>, by default)
• `F` (<t:1431468000:F>)
• `R` (<t:1431468000:R>)
75 changes: 75 additions & 0 deletions plugins/misc/langs/fr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
fr:
misc:
dice:
title: "Les dés sont jetés !"
description: "Le résultat est : %{value}"
error:
not_int: "La valeur doit être un entier"
not_positive: "La valeur doit être positive"
cookie:
give: "Voilà pour vous %{to}: :cookie:\nDe la part de %{giver}"
self: "Voilà pour vous %{to}: :cookie:"
hoster:
info: "mTx Serv proposent un service d'hébergement de serveur, en particulier destiné aux jeux. Leurs serveurs sont équipé des dernières technologies et sont extrêmement fiable. Ajoutez à celà leur SAV très réactif et sympatique et vous avez le parfait hébergeur pour vos projets !\n:speech_balloon: [Serveur Discord](https://mtxserv.com/discord?utm_source=altearn_website_discord&utm_medium=website&utm_campaign=altearn_to_discord)\n:globe_with_meridians: [Site web](https://mtxserv.com/fr/?utm_source=altearn_website&utm_medium=website&utm_campaign=altearn)"
flipacoin:
title: Pling !
heads: "C'est face !"
tails: "C'est pile !"
side: "C'est ... tranche ! 😱\n(oui oui, ça peut arriver !)"
kills:
"0": "Oh toi, tu vas mourir !"
"1": "***BOUM !*** {1} est tombé dans un piège posé par {0} !"
"2": "Heureusement que le sol a amorti la chute de {1} !"
"3": "{0} a crié \"Fus Roh Dah\" alors que {1} était à coté d'une falaise..."
"4": "Eh non, tu ne peux pas arreter les balles avec tes mains {1} :shrug:"
"5": "Il faut être __dans__ l’ascenseur {1}, pas __au-dessus__..."
"6": "{1} est resté trop près des enceintes lors d'un concert de heavy metal."
"7": "Rester à moins de 10m d'une explosion atomique, ce n'était pas une bonne idée {1}..."
"8": "Non ! Les doubles sauts ne sont pas possibles {1} !"
"9": "{1} a imité Icare... splash."
"10": "C'est bien d'avoir un pistolet à portails {1}, encore faut il ne pas en ouvrir un au dessus des piques...."
"11": "{1} est mort. Paix à son âme... :sneezing_face:"
"12": "{0} a tué {1}"
"13": "{1} a été shot par {0}"
"14": "Bye {1} ! :ghost:"
"15": "{1} a vu tomber une enclume volante... sur sa tête :head_bandage:"
"16": "{1} part se suicider après que {0} ai coupé sa connexion"
"17": "Attention {1} ! Le feu, ça brûle :fire:"
"18": "{1} est parti sans pelle lors d'une attaque zombie"
"19": "{1} a tenté de faire un calin à un creeper"
"20": "{1}, les bains de lave sont chauds, mais la lave, ça brûle..."
"21": "{1} a tenté un rocket jump"
"22": "Il ne fallait pas écouter la jolie mélodie de la Lullaby, {1} :musical_note:"
"23": "{2}.exe *a cessé de fonctionner*"
dataja:
title: "Don't ask to ask, just ask"
description: "Demander si vous pouvez demander est une perte de temps.\nDemander si il y a une personne compétent demande un engagement aveugle de cette dernière en cas de réponse, personne ne voudra donc répondre.\n\nApprenez les bonnes pratiques pour demander quelque chose : \nhttps://zrunner.me/d-a-t-a/fr.html"
timestamp:
read-result: "La date contenue dans %{source} est le <t:%{timestamp}> (soit <t:%{timestamp}:R>) (timestamp : %{timestamp})"
not-found: "Je n'ai pas trouvé de date dans %{source} !"
create-result: "Le timestamp du <t:%{timestamp}:F> est : `%{timestamp}` (timestamp pour Discord : `<t:%{timestamp}>`)"
help: |
***Le timestamp dans discord***
*Exemple : Discord a été créé <t:1431468000:R>, le <t:1431468000:D>.*
__**Utiliser le timestamp**__ :
Il faut tout d'abord obtenir un timestamp (vous pouvez utiliser les commandes `timestamp get` et `timestamp create` du bot), puis suivre la syntaxe suivante :
```
<t:[TIMESTAMP]>
```
En remplaçant `[TIMESTAMP]` par le timestamp que vous souhaitez utiliser.
__**Utiliser les styles**__ :
On peut ajouter un style à la fin du timestamp, sous cette forme :
```
<t:[TIMESTAMP]:[STYLE]>
```
En remplaçant cette fois `[STYLE]` par une des options suivantes :
• `t` (<t:1431468000:t>)
• `T` (<t:1431468000:T>)
• `d` (<t:1431468000:d>)
• `D` (<t:1431468000:D>)
• `f` (<t:1431468000:f>, par défaut)
• `F` (<t:1431468000:F>)
• `R` (<t:1431468000:R>)
Loading

0 comments on commit b3f4f43

Please sign in to comment.