Skip to content

Commit

Permalink
Blocks closest feature (no refactor/cleanup yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
XboxBedrock committed Jun 15, 2024
1 parent bbb30dc commit ae10fce
Show file tree
Hide file tree
Showing 26 changed files with 944 additions and 303 deletions.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion config/_config.json5
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
images: {
//Please add the bindport in Dockerfile aswell
bindPort: 8080,
bindAddress: "http://127.0.0.1"
bindAddress: "http://127.0.0.1",
apiUrl: "https://mcblocks.buildtheearth.net/getBlockImage"
},
emojis: {
upvote: "👍",
Expand Down
6 changes: 6 additions & 0 deletions config/extensions/commands/access/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
description: 'The channel to get permissions for',
translated_description: 'The channel to get permissions for',
},
{
name: 'bypass',
translated_name: 'bypass',
description: 'Bypass the channel permission check',
translated_description: 'Bypass the channel permission check',
},
],
aliases: [],
translated_aliases: [],
Expand Down
54 changes: 40 additions & 14 deletions config/extensions/commands/block/en.json5
Original file line number Diff line number Diff line change
@@ -1,28 +1,54 @@
{
name: 'block',
translated_name: 'block',
description: 'Find a minecraft block! (currently only 1.12.2)',
translated_description: 'Find a minecraft block! (currently only 1.12.2)',
description: 'Find a minecraft block closest to a given color!',
translated_description: 'Find a minecraft block closest to a given color!',
args: [
{
name: 'blocks',
translated_name: 'blocks',
description: 'blocks to search seperated by ,',
translated_description: 'blocks to search seperated by ,',
name: 'version',
translated_name: 'version',
description: 'Minecraft version to search blocks for',
translated_description: 'Minecraft version to search blocks for',
},
{
name: 'count',
translated_name: 'count',
description: 'Number of blocks to show per page',
translated_description: 'Number of blocks to show per page',
},
{
name: 'notext',
translated_name: 'notext',
description: 'Select this option if you want no text on your image',
translated_description: 'Select this option if you want no text on your image',
},
],
subcommands: [
{
name: 'search',
translated_name: 'search',
description: 'Search for blocks based on query.',
translated_description: 'Search for blocks based on query.',
name: 'image',
translated_name: 'image',
description: 'Search for blocks based on an image',
translated_description: 'Search for blocks based on an image',
args: [
{
name: 'image',
translated_name: 'image',
description: 'The image to match blocks to',
translated_description: 'The image to match blocks to',
},
],
},
{
name: 'color',
translated_name: 'color',
description: 'Search for blocks based on a color',
translated_description: 'Search for blocks based on a color',
args: [
{
name: 'query',
translated_name: 'query',
description: 'Query to search by.',
translated_description: 'Query to search by.',
name: 'hexcode',
translated_name: 'hexcode',
description: 'The hex code of the color you want to input',
translated_description: 'The hex code of the color you want to input',
},
],
},
Expand Down
4 changes: 2 additions & 2 deletions config/extensions/commands/duty/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
translated_description: 'Manage your on duty roles.',
subcommands: [
{
name: 'add',
translated_name: 'add',
name: 'toggle',
translated_name: 'toggle',
description: 'Add someone to duty.',
translated_description: 'Add someone to duty.',
args: [
Expand Down
80 changes: 72 additions & 8 deletions config/extensions/commands/honor/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,84 @@
{
name: 'user',
translated_name: 'user',
description: 'User to advance.',
translated_description: 'User to advance.',
description: 'User to honor.',
translated_description: 'User to honor.',
},
],
subcommands: [
{
name: 'type',
translated_name: 'type',
description: 'The type of special builder role!',
translated_description: 'The type of special builder role!',
name: 'add',
translated_name: 'add',
description: 'Honor a new builder',
translated_description: 'Honor a new builder',
args: [
{
name: 'duration',
translated_name: 'duration',
description: 'The duration of honor (in months)',
translated_description: 'The duration of honor (in months)',
},
{
name: 'type',
translated_name: 'type',
description: 'The type of special builder role!',
translated_description: 'The type of special builder role!',
},
],
},
{
name: 'demote',
translated_name: 'demote',
description: 'Optional arg to demote advanced builder',
translated_description: 'Optional arg to demote advanced builder',
description: 'Demote a honored builder',
translated_description: 'Demote a honored builder',
args: [],
},
{
name: 'extend',
translated_name: 'extend',
description: 'Extend the duration for an honored builder',
translated_description: 'Extend the duration for an honored builder',
args: [
{
name: 'duration',
translated_name: 'duration',
description: 'The duration to extend by (in months)',
translated_description: 'The duration to extend by (in months)',
},
{
name: 'type',
translated_name: 'type',
description: 'The type of special builder role!',
translated_description: 'The type of special builder role!',
},
],
},
{
name: 'lower',
translated_name: 'lower',
description: 'Lower the duration for an honored builder',
translated_description: 'Lower the duration for an honored builder',
args: [
{
name: 'duration',
translated_name: 'duration',
description: 'The duration to lower by (in months)',
translated_description: 'The duration to lower by (in months)',
},
{
name: 'type',
translated_name: 'type',
description: 'The type of special builder role!',
translated_description: 'The type of special builder role!',
},
],
},
{
name: 'info',
translated_name: 'info',
description: 'Give info about a honored builder',
translated_description: 'Give info about a honored builder',
args: [],
},
],
aliases: [
Expand Down
24 changes: 22 additions & 2 deletions config/extensions/commands/info/en.json5
Original file line number Diff line number Diff line change
@@ -1,8 +1,28 @@
{
name: 'info',
translated_name: 'info',
description: 'Get info about the bot!',
translated_description: 'Get info about the bot!',
description: 'Get info about the server or bot!',
translated_description: 'Get info about the server or bot!',
subcommands: [
{
name: 'bot',
translated_name: 'bot',
description: 'Get info about the bot!',
translated_description: 'Get info about the bot!',
},
{
name: 'server',
translated_name: 'server',
description: 'Get info about the server!',
translated_description: 'Get info about the server!',
},
{
name: 'moderation',
translated_name: 'moderation',
description: 'Get info about moderation!',
translated_description: 'Get info about moderation!',
},
],
aliases: [],
translated_aliases: [],
}
64 changes: 49 additions & 15 deletions config/extensions/commands/position/en.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,58 @@
translated_name: 'position',
description: 'Promote/demote a member from your team.',
translated_description: 'Promote/demote a member from your team.',
args: [
subcommands: [
{
name: 'member',
translated_name: 'member',
description: 'Member to promote/demote.',
translated_description: 'Member to promote/demote.',
name: 'adjust',
translated_name: 'adjust',
description: 'Promote/demote a member from your team.',
translated_description: 'Promote/demote a member from your team.',
args: [
{
name: 'member',
translated_name: 'member',
description: 'Member to promote/demote.',
translated_description: 'Member to promote/demote.',
},
{
name: 'position',
translated_name: 'position',
description: 'Position to promote/demote to.',
translated_description: 'Position to promote/demote to.',
},
{
name: 'promote',
translated_name: 'promote',
description: 'Wheter to promote or demote',
translated_description: 'Wheter to promote or demote',
},
],
},
{
name: 'position',
translated_name: 'position',
description: 'Position to promote/demote to.',
translated_description: 'Position to promote/demote to.',
},
{
name: 'promote',
translated_name: 'promote',
description: 'Wheter to promote or demote',
translated_description: 'Wheter to promote or demote',
name: 'manage',
translated_name: 'manage',
description: 'Add or remove any role from a member.',
translated_description: 'Add or remove any role from a member.',
args: [
{
name: 'member',
translated_name: 'member',
description: 'Member to give the role.',
translated_description: 'Member to give the role.',
},
{
name: 'role',
translated_name: 'role',
description: 'Role to give to the member.',
translated_description: 'Role to give to the member.',
},
{
name: 'remove',
translated_name: 'remove',
description: 'If true the role will be removed.',
translated_description: 'If true the role will be removed.',
},
],
},
],
aliases: [],
Expand Down
Loading

0 comments on commit ae10fce

Please sign in to comment.