Global

Members

(constant) bot

Source:
Properties:
Type Attributes Description
Bot <nullable>

(constant) bot

Source:
Properties:
Type Attributes Description
Bot <nullable>

(constant) general_options :Intl.DateTimeFormatOptions

Source:
Type:
  • Intl.DateTimeFormatOptions

(constant) subscribers

Source:

Methods

encodeCallbackData(params)

Description:
  • Generate callback data of the form prefix:key:current:next

Source:
Parameters:
Name Type Description
params Object
Returns:

generateAPICall(discord_event, event_data, type)

Source:
Parameters:
Name Type Default Description
discord_event DiscordEvent
event_data *
type 'edit' | 'new' new
Returns:

(async) getAhegaoUrl() → {Promise.<(String|null)>}

Description:
  • Gets a url for random ahegao Source for ahegao is https://ahegao.netlify.app/ GitHub

Source:
Returns:
Type
Promise.<(String|null)>

(async) getGameFromRAWG()

Description:
  • Get game from RAWG

Source:
Parameters:
Type Description
Object
Returns:

getPresenceNotification(presence_data, chat_id) → {PresenceNotification}

Source:
Parameters:
Name Type Description
presence_data *
chat_id *
Returns:
Type
PresenceNotification

getRedis() → {Redis|null}

Source:
Returns:
Type
Redis | null

(async) getUrbanDefinition(word) → {Promise.<(String|null)>}

Description:
  • Get first definition from urban dictionary

Source:
Parameters:
Name Type Description
word String | undefined
Returns:
Type
Promise.<(String|null)>

(async) handler(interactionnullable) → {Object}

Description:
  • /ahegao command handler

Source:
Parameters:
Name Type Attributes Description
interaction Object <nullable>
Returns:
Type
Object

(async) handler(interaction) → {Object}

Description:
  • /calc command handler

Source:
Parameters:
Name Type Description
interaction Object
Returns:
Type
Object

(async) handler(interaction)

Description:
  • /curl command handler

Source:
Parameters:
Name Type Description
interaction Object
Returns:

(async) handler(interaction) → {Object}

Description:
  • /cur command handler

Source:
Parameters:
Name Type Description
interaction Object
Returns:
Type
Object

handler(interaction)

Source:
Parameters:
Name Type Description
interaction
Returns:

(async) handler()

Description:
  • /ping command handler

Source:
Returns:

(async) handler(interaction)

Description:
  • /urban command handler

Source:
Parameters:
Name Type Description
interaction Object
Returns:

(async) handler(interaction) → {Object}

Description:
  • /wiki command handler

Source:
Parameters:
Name Type Description
interaction Object
Returns:
Type
Object

(async) listingMenuCallback(interaction, getChoices)

Source:
Parameters:
Name Type Description
interaction Interaction
getChoices
Returns:

mergeContent(prev_content, content, prev_author) → {NodeContent}

Description:
  • Merge contents for Claude 3 complience

Source:
Parameters:
Name Type Default Description
prev_content NodeContent
content NodeContent
prev_author string | undefined assistant
Returns:
Type
NodeContent

parseCallbackData(data) → {Object}

Source:
Parameters:
Name Type Description
data 'prefix:key:current:next'
Returns:
Type
Object
Description:
  • Replace [arg] with <a href="urban dictionary/arg">arg</a>

Source:
Parameters:
Name Type Description
line String

startRedis() → {Redis|null}

Source:
Returns:
Type
Redis | null

urbanToHTML(urban_definition) → {String|undefined}

Description:
  • Convert urban_definition by urban dictionary API to text HTML

Source:
Parameters:
Name Type Description
urban_definition Object
Returns:
Type
String | undefined

webapp_callback(slug)

Source:
Parameters:
Name Type Description
slug string

Game identifier

Returns: