## Create a new config/initialisation file
Create a user-level initialisation file init.el
:
touch .emacs.d/init.el
This work, excluding the Arch Linux logo, is made available under CC0: https://creativecommons.org/publicdomain/zero/1.0/ |
import discord | |
from discord.ext import commands | |
import sys, traceback | |
"""This is a multi file example showcasing many features of the command extension and the use of cogs. | |
These are examples only and are not intended to be used as a fully functioning bot. Rather they should give you a basic | |
understanding and platform for creating your own bot. | |
These examples make use of Python 3.6.2 and the rewrite version on the lib. |
@commands.guild_only() | |
# Command cannot be used in private messages. | |
@commands.dm_only() | |
# Command can only be used in private messages. | |
@commands.is_owner() | |
# Command can only be used by the bot owner. | |
@commands.is_nsfw() |
{ | |
"grinning": "\ud83d\ude00", | |
"smiley": "\ud83d\ude03", | |
"smile": "\ud83d\ude04", | |
"grin": "\ud83d\ude01", | |
"laughing": "\ud83d\ude06", | |
"satisfied": "\ud83d\ude06", | |
"face_holding_back_tears": "\ud83e\udd79", | |
"sweat_smile": "\ud83d\ude05", | |
"joy": "\ud83d\ude02", |
#utf-8 | |
###################### | |
# Line Transformers: # | |
###################### | |
# ------------------------------------------ | |
# --- `λxy.` shortcut for `lambda x, y:` --- | |
# ------------------------------------------ |