import cursingspock
from spockbot import Client
from spockbot.plugins import default_plugins as plugins
from bat import bat, command

plugins.extend([
    ('bat', bat.BatPlugin),
    ('commands', command.CommandPlugin),
    ('curses', cursingspock.CursesPlugin),
])

# login_credentials should contain a dict with 'username' and 'password'
#from login_credentials import settings
settings = {
    'start': {'username': 'Bat'},
    'auth': {'online_mode': False},
}
client = Client(plugins=plugins, settings=settings)

client.start('localhost', 25565)

import cursingspock
from spockbot import Client
from spockbot.plugins import default_plugins
from bat import bat, command

plugins = default_plugins.copy()
plugins.extend([
    ('bat', bat.BatPlugin),
    ('commands', command.CommandPlugin),
    ('curses', cursingspock.CursesPlugin),
])

# login_credentials should contain a dict with 'username' and 'password'
#from login_credentials import settings
settings = {
    'start': {'username': 'Bat'},
    'auth': {'online_mode': False},
}
client = Client(plugins=plugins, settings=settings)

client.start('localhost', 25565)

Copy default plugins and extend
Copy default plugins and extend

  import cursingspock
  from spockbot import Client
- from spockbot.plugins import default_plugins as plugins
+ from spockbot.plugins import default_plugins
  from bat import bat, command
  
+ plugins = default_plugins.copy()
  plugins.extend([
      ('bat', bat.BatPlugin),
      ('commands', command.CommandPlugin),
      ('curses', cursingspock.CursesPlugin),
  ])
  
  # login_credentials should contain a dict with 'username' and 'password'
  #from login_credentials import settings
  settings = {
      'start': {'username': 'Bat'},
      'auth': {'online_mode': False},
  }
  client = Client(plugins=plugins, settings=settings)
  
  client.start('localhost', 25565)
  
Copy default plugins and extend
## Code Before:
import cursingspock
from spockbot import Client
from spockbot.plugins import default_plugins as plugins
from bat import bat, command

plugins.extend([
    ('bat', bat.BatPlugin),
    ('commands', command.CommandPlugin),
    ('curses', cursingspock.CursesPlugin),
])

# login_credentials should contain a dict with 'username' and 'password'
#from login_credentials import settings
settings = {
    'start': {'username': 'Bat'},
    'auth': {'online_mode': False},
}
client = Client(plugins=plugins, settings=settings)

client.start('localhost', 25565)

## Instruction:
Copy default plugins and extend
## Code After:
import cursingspock
from spockbot import Client
from spockbot.plugins import default_plugins
from bat import bat, command

plugins = default_plugins.copy()
plugins.extend([
    ('bat', bat.BatPlugin),
    ('commands', command.CommandPlugin),
    ('curses', cursingspock.CursesPlugin),
])

# login_credentials should contain a dict with 'username' and 'password'
#from login_credentials import settings
settings = {
    'start': {'username': 'Bat'},
    'auth': {'online_mode': False},
}
client = Client(plugins=plugins, settings=settings)

client.start('localhost', 25565)
