Skip to content

Commit

Permalink
s/pluggy/extendabot/g
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Oct 3, 2024
1 parent 8e477b3 commit e87967b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions GUESTS.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Writing a plugin

Hi hello welcome! To write a guest for pluggy, start by:
Hi hello welcome! To write a guest for extendabot, start by:

1. Running `/pluggy signup` in a pluggy-powered server. Click on the link and register
1. Running `/extendabot signup` in a extendabot-powered server. Click on the link and register
with XTP!
2. Run `/pluggy listen-for <some regex pattern> <some plugin>`. The plugin name is optional --
if you can't think of one we'll generate one for you. For example, `/pluggy listen-for wow`
or `/pluggy listen-for ^[A-Z 0-9!.]+$ LOUDBOT`.
2. Run `/extendabot listen-for <some regex pattern> <some plugin>`. The plugin name is optional --
if you can't think of one we'll generate one for you. For example, `/extendabot listen-for wow`
or `/extendabot listen-for ^[A-Z 0-9!.]+$ LOUDBOT`.
3. Create a plugin using the xtp cli ([get started here](https://docs.xtp.dylibso.com/docs/guest-usage/getting-started)).
4. Publish your plugin and test it in the `#bots` channel.

Expand Down
2 changes: 1 addition & 1 deletion examples/00-send-message/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
import { sendMessage } from "./pdk";

// Make this test:
// - In discord `#bots`, run: `/pluggy listen-for greetings send-message`.
// - In discord `#bots`, run: `/extendabot listen-for greetings send-message`.
// - In a terminal in the 00-send-message directory, run `xtp plugin push`.
// - In discord: say "greetings".
export function handleImpl(input: IncomingEvent) {
Expand Down
2 changes: 1 addition & 1 deletion examples/01-reply/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

// - In discord `#bots`, run: `/pluggy listen-for "how are you" reply`.
// - In discord `#bots`, run: `/extendabot listen-for "how are you" reply`.
// - In a terminal in the 01-reply directory, run `xtp plugin push`.
// - In discord: say "how are you".
func Handle(input IncomingEvent) error {
Expand Down
2 changes: 1 addition & 1 deletion examples/02-react/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ mod pdk;
use extism_pdk::*;
use pdk::*;

// - In discord `#bots`, run: `/pluggy listen-for "robot" react`.
// - In discord `#bots`, run: `/extendabot listen-for "robot" react`.
// - In a terminal in the 02-react directory, run `xtp plugin push`.
// - In discord: say "any robots here".
pub(crate) fn handle(input: IncomingEvent) -> Result<(), Error> {
Expand Down
2 changes: 1 addition & 1 deletion examples/03-watch/impl.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "pdk.gen.hpp"
#include <extism-pdk.hpp>

// - In discord `#bots`, run: `/pluggy listen-for "you are a" react`.
// - In discord `#bots`, run: `/extendabot listen-for "you are a" react`.
// - In a terminal in the 03-watch directory, run `xtp plugin push`.
// - In discord: say "you are a robot".
std::expected<void, pdk::Error> impl::handle(pdk::IncomingEvent &&input) {
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ assert(DISCORD_BOT_CLIENT_ID, 'Need to set DISCORD_BOT_CLIENT_ID env var');
export const DISCORD_GUILD_FILTER = new Set((process.env.DISCORD_GUILD_FILTER || '').split(','))
export const DISCORD_CHANNEL_FILTER = new Set((process.env.DISCORD_CHANNEL_FILTER || '').split(','))

export const DISCORD_PLUGIN_COMMAND = process.env.DISCORD_PLUGIN_COMMAND || 'pluggy'
export const DISCORD_PLUGIN_COMMAND = process.env.DISCORD_PLUGIN_COMMAND || 'extendabot'
export const DISCORD_MANAGE_COMMAND = process.env.DISCORD_MANAGE_COMMAND || 'manage-plugins'

export const PGURL = process.env.PGURL
Expand Down

0 comments on commit e87967b

Please sign in to comment.