This commit is contained in:
Daniel Løvbrøtte Olsen 2019-02-26 23:29:46 +01:00
commit 3aa55ec7e6
4 changed files with 624 additions and 635 deletions

View File

@ -1,5 +1,5 @@
# About # About
This is a bot for converting x- or z-sampa to IPA, or converting a custom ascii notation to standard PIE notation. This is a bot for converting x- or z-sampa to IPA, or converting a custom ascii notation to standard PIE notation. Useful for e.g. linguistics and conlanging, and for creating powerful unicode emoticons.
Simply type your ascii inside // or [] with a prefixed x, z or p for x-sampa, z-sampa and PIE-notation respectively. Simply type your ascii inside // or [] with a prefixed x, z or p for x-sampa, z-sampa and PIE-notation respectively.
For instance: For instance:

View File

@ -1,11 +1,14 @@
import x2i from "./x2i"; import x2i from "./x2i";
const config = require("./config.json"); // const config = require("./config.json");
const MatrixClient = require("matrix-bot-sdk").MatrixClient; const MatrixClient = require("matrix-bot-sdk").MatrixClient;
const AutojoinRoomsMixin = require("matrix-bot-sdk").AutojoinRoomsMixin; const AutojoinRoomsMixin = require("matrix-bot-sdk").AutojoinRoomsMixin;
const client = new MatrixClient(config.homeserver, config.token); const homeserver = ( /*config.homeserver || process.env.WUG_HOMESERVER ||*/ process.env.MATRIXDEV_HOMESERVER);
const token = (/* config.token || process.env.WUG_TOKEN||*/ process.env.MATRIXDEV_TOKEN);
const client = new MatrixClient(homeserver, token);
AutojoinRoomsMixin.setupOnClient(client); AutojoinRoomsMixin.setupOnClient(client);
const myself = client.getUserId() const myself = client.getUserId()

1248
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -286,7 +286,7 @@
- - _/ - - _/
- ̌ - ̌
- - _; - - _;
- - ͋
- - _=\ - - _=\
- "˭" - "˭"
- - _= - - _=